From 7c46cf0bfe88e2f6ce1bcad537844e3225670899 Mon Sep 17 00:00:00 2001
From: Torok Edwin
Date: Wed, 4 Aug 2010 12:43:22 +0000
Subject: [PATCH] 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
---
docs/ReleaseNotes.html | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html
index 01a39a7ce07..4f14ac65ce2 100644
--- a/docs/ReleaseNotes.html
+++ b/docs/ReleaseNotes.html
@@ -323,7 +323,34 @@ expose new optimization opportunities:
these routines tend to perform costly dereference operations more than once. You
have to dereference the iterators yourself and pass them in.
-
+
+ llvm.memcpy.*, llvm.memset.*, llvm.memmove.* (and possibly other?) intrinsics
+ take an extra parameter now (i1 isVolatile), totaling 5 parameters.
+ If you were creating these intrinsic calls and prototypes yourself (as opposed
+ to using Intrinsic::getDeclaration), you can use UpgradeIntrinsicFunction/UpgradeIntrinsicCall
+ to be portable accross releases.
+ Note that you cannot use Intrinsic::getDeclaration() in a backwards compatible
+ way (needs 2/3 types now, in 2.7 it needed just 1).
+
+
+ SetCurrentDebugLocation takes a DebugLoc now instead of a MDNode.
+ Change your code to use
+ SetCurrentDebugLocation(DebugLoc::getFromDILocation(...)).
+
+
+ VISIBILITY_HIDDEN is gone.
+
+
+ SMDiagnostic takes different parameters now. //FIXME: how to upgrade?
+
+
+ Some APIs got renamed:
+
+ - llvm_report_error -> report_fatal_error
+ - llvm_install_error_handler -> install_fatal_error_handler
+ - llvm::DwarfExceptionHandling -> llvm::JITExceptionHandling
+
+