From: Bill Wendling Date: Tue, 2 Aug 2011 06:20:17 +0000 (+0000) Subject: Remove the LLVMBuildUnwind C API function. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=16005253850679a34b09a70bca32a6c0233380d6;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136683 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/ReleaseNotes.html b/docs/ReleaseNotes.html index 0b0377d8756..025f91a8f8d 100644 --- a/docs/ReleaseNotes.html +++ b/docs/ReleaseNotes.html @@ -596,7 +596,7 @@ from the previous release.

In addition, many APIs have changed in this release. Some of the major - LLVM API changes are:

+ LLVM API changes are:

diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index 782b7eae9a2..0acf5a23af2 100644 --- a/include/llvm-c/Core.h +++ b/include/llvm-c/Core.h @@ -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); diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index ce010c1b7da..bff0d865cf0 100644 --- a/lib/VMCore/Core.cpp +++ b/lib/VMCore/Core.cpp @@ -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))); }