Remove the LLVMBuildUnwind C API function.
authorBill Wendling <isanbard@gmail.com>
Tue, 2 Aug 2011 06:20:17 +0000 (06:20 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 2 Aug 2011 06:20:17 +0000 (06:20 +0000)
The 'unwind' function is going away with the new EH rewrite. This is step 0 in
keeping front-ends from using it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136683 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ReleaseNotes.html
include/llvm-c/Core.h
lib/VMCore/Core.cpp

index 0b0377d87561e3cfd153a53666dc94f26884ed81..025f91a8f8df9845da98a1bc0a93ecb3af1d6bd2 100644 (file)
@@ -596,7 +596,7 @@ from the previous release.</p>
 <div>
 
 <p>In addition, many APIs have changed in this release.  Some of the major
-  LLVM API changes are:</p>
+   LLVM API changes are:</p>
 
 <ul>
 <li>The biggest and most pervasive change is that llvm::Type's are no longer
@@ -662,6 +662,11 @@ from the previous release.</p>
 <li>All forms of <code>StringMap::getOrCreateValue</code> have been remove
   except for the one which takes a <code>StringRef</code>.</li>
 
+<li>The <code>LLVMBuildUnwind</code> function from the C API was removed. The
+    LLVM <code>unwind</code> instruction has been deprecated for a long time and
+    isn't used by the current front-ends. So this was removed along with the
+    exception handling rewrite.</li>
+
 </ul>
 </div>
 
index 782b7eae9a26117c3fe4d345e1b547e345441f26..0acf5a23af264c6789fb70d0f9b10febb81db925 100644 (file)
@@ -125,7 +125,7 @@ typedef enum {
   LLVMSwitch         = 3,
   LLVMIndirectBr     = 4,
   LLVMInvoke         = 5,
-  LLVMUnwind         = 6,
+  /* removed 6 due to API changes */
   LLVMUnreachable    = 7,
 
   /* Standard Binary Operators */
@@ -479,7 +479,6 @@ LLVMTypeRef LLVMX86MMXType(void);
         macro(ReturnInst)                   \
         macro(SwitchInst)                   \
         macro(UnreachableInst)              \
-        macro(UnwindInst)                   \
         macro(ResumeInst)                   \
     macro(UnaryInstruction)                 \
       macro(AllocaInst)                     \
@@ -828,7 +827,6 @@ LLVMValueRef LLVMBuildInvoke(LLVMBuilderRef, LLVMValueRef Fn,
                              LLVMValueRef *Args, unsigned NumArgs,
                              LLVMBasicBlockRef Then, LLVMBasicBlockRef Catch,
                              const char *Name);
-LLVMValueRef LLVMBuildUnwind(LLVMBuilderRef);
 LLVMValueRef LLVMBuildResume(LLVMBuilderRef B, LLVMValueRef Exn);
 LLVMValueRef LLVMBuildUnreachable(LLVMBuilderRef);
 
index ce010c1b7dafa818610461f593b049f2fd40cfe8..bff0d865cf0e6f7da67adf97eb30b2a78c7410b0 100644 (file)
@@ -1683,10 +1683,6 @@ LLVMValueRef LLVMBuildInvoke(LLVMBuilderRef B, LLVMValueRef Fn,
                                       Name));
 }
 
-LLVMValueRef LLVMBuildUnwind(LLVMBuilderRef B) {
-  return wrap(unwrap(B)->CreateUnwind());
-}
-
 LLVMValueRef LLVMBuildResume(LLVMBuilderRef B, LLVMValueRef Exn) {
   return wrap(unwrap(B)->CreateResume(unwrap(Exn)));
 }