[llvm-commits] [llvm] r136683 - in /llvm/trunk: docs/ReleaseNotes.html include/llvm-c/Core.h lib/VMCore/Core.cpp

Bill Wendling isanbard at gmail.com
Mon Aug 1 23:20:17 PDT 2011


Author: void
Date: Tue Aug  2 01:20:17 2011
New Revision: 136683

URL: http://llvm.org/viewvc/llvm-project?rev=136683&view=rev
Log:
Remove the LLVMBuildUnwind C API function.

The 'unwind' function is going away with the new EH rewrite. This is step 0 in
keeping front-ends from using it.

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

Modified: llvm/trunk/docs/ReleaseNotes.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/ReleaseNotes.html?rev=136683&r1=136682&r2=136683&view=diff
==============================================================================
--- llvm/trunk/docs/ReleaseNotes.html (original)
+++ llvm/trunk/docs/ReleaseNotes.html Tue Aug  2 01:20:17 2011
@@ -596,7 +596,7 @@
 <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 @@
 <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>
 

Modified: llvm/trunk/include/llvm-c/Core.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Core.h?rev=136683&r1=136682&r2=136683&view=diff
==============================================================================
--- llvm/trunk/include/llvm-c/Core.h (original)
+++ llvm/trunk/include/llvm-c/Core.h Tue Aug  2 01:20:17 2011
@@ -125,7 +125,7 @@
   LLVMSwitch         = 3,
   LLVMIndirectBr     = 4,
   LLVMInvoke         = 5,
-  LLVMUnwind         = 6,
+  /* removed 6 due to API changes */
   LLVMUnreachable    = 7,
 
   /* Standard Binary Operators */
@@ -479,7 +479,6 @@
         macro(ReturnInst)                   \
         macro(SwitchInst)                   \
         macro(UnreachableInst)              \
-        macro(UnwindInst)                   \
         macro(ResumeInst)                   \
     macro(UnaryInstruction)                 \
       macro(AllocaInst)                     \
@@ -828,7 +827,6 @@
                              LLVMValueRef *Args, unsigned NumArgs,
                              LLVMBasicBlockRef Then, LLVMBasicBlockRef Catch,
                              const char *Name);
-LLVMValueRef LLVMBuildUnwind(LLVMBuilderRef);
 LLVMValueRef LLVMBuildResume(LLVMBuilderRef B, LLVMValueRef Exn);
 LLVMValueRef LLVMBuildUnreachable(LLVMBuilderRef);
 

Modified: llvm/trunk/lib/VMCore/Core.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Core.cpp?rev=136683&r1=136682&r2=136683&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Core.cpp (original)
+++ llvm/trunk/lib/VMCore/Core.cpp Tue Aug  2 01:20:17 2011
@@ -1683,10 +1683,6 @@
                                       Name));
 }
 
-LLVMValueRef LLVMBuildUnwind(LLVMBuilderRef B) {
-  return wrap(unwrap(B)->CreateUnwind());
-}
-
 LLVMValueRef LLVMBuildResume(LLVMBuilderRef B, LLVMValueRef Exn) {
   return wrap(unwrap(B)->CreateResume(unwrap(Exn)));
 }





More information about the llvm-commits mailing list