llvm.org GIT mirror llvm / 7c46cf0
Note some LLVM 2.7 -> 2.8 APIs that changed / got renamed. I encountered these while upgrading libclamav. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110196 91177308-0d34-0410-b5e6-96231b3b80d8 Torok Edwin 9 years ago
1 changed file(s) with 28 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
322322 these routines tend to perform costly dereference operations more than once. You
323323 have to dereference the iterators yourself and pass them in.
324324
325
325
  • 326 llvm.memcpy.*, llvm.memset.*, llvm.memmove.* (and possibly other?) intrinsics
    327 take an extra parameter now (i1 isVolatile), totaling 5 parameters.
    328 If you were creating these intrinsic calls and prototypes yourself (as opposed
    329 to using Intrinsic::getDeclaration), you can use UpgradeIntrinsicFunction/UpgradeIntrinsicCall
    330 to be portable accross releases.
    331 Note that you cannot use Intrinsic::getDeclaration() in a backwards compatible
    332 way (needs 2/3 types now, in 2.7 it needed just 1).
    333
    334
  • 335 SetCurrentDebugLocation takes a DebugLoc now instead of a MDNode.
    336 Change your code to use
    337 SetCurrentDebugLocation(DebugLoc::getFromDILocation(...)).
    338
    339
  • 340 VISIBILITY_HIDDEN is gone.
    341
    342
  • 343 SMDiagnostic takes different parameters now. //FIXME: how to upgrade?
    344
    345
  • 346 Some APIs got renamed:
    347
    348
  • llvm_report_error -> report_fatal_error
  • 349
  • llvm_install_error_handler -> install_fatal_error_handler
  • 350
  • llvm::DwarfExceptionHandling -> llvm::JITExceptionHandling
  • 351
    352
    326353
    327354
    328355