forked from OSchip/llvm-project
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. llvm-svn: 136683
This commit is contained in:
parent
2dfc79b19e
commit
46ffaa95bd
|
@ -662,6 +662,11 @@ from the previous release.</p>
|
||||||
<li>All forms of <code>StringMap::getOrCreateValue</code> have been remove
|
<li>All forms of <code>StringMap::getOrCreateValue</code> have been remove
|
||||||
except for the one which takes a <code>StringRef</code>.</li>
|
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>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -125,7 +125,7 @@ typedef enum {
|
||||||
LLVMSwitch = 3,
|
LLVMSwitch = 3,
|
||||||
LLVMIndirectBr = 4,
|
LLVMIndirectBr = 4,
|
||||||
LLVMInvoke = 5,
|
LLVMInvoke = 5,
|
||||||
LLVMUnwind = 6,
|
/* removed 6 due to API changes */
|
||||||
LLVMUnreachable = 7,
|
LLVMUnreachable = 7,
|
||||||
|
|
||||||
/* Standard Binary Operators */
|
/* Standard Binary Operators */
|
||||||
|
@ -479,7 +479,6 @@ LLVMTypeRef LLVMX86MMXType(void);
|
||||||
macro(ReturnInst) \
|
macro(ReturnInst) \
|
||||||
macro(SwitchInst) \
|
macro(SwitchInst) \
|
||||||
macro(UnreachableInst) \
|
macro(UnreachableInst) \
|
||||||
macro(UnwindInst) \
|
|
||||||
macro(ResumeInst) \
|
macro(ResumeInst) \
|
||||||
macro(UnaryInstruction) \
|
macro(UnaryInstruction) \
|
||||||
macro(AllocaInst) \
|
macro(AllocaInst) \
|
||||||
|
@ -828,7 +827,6 @@ LLVMValueRef LLVMBuildInvoke(LLVMBuilderRef, LLVMValueRef Fn,
|
||||||
LLVMValueRef *Args, unsigned NumArgs,
|
LLVMValueRef *Args, unsigned NumArgs,
|
||||||
LLVMBasicBlockRef Then, LLVMBasicBlockRef Catch,
|
LLVMBasicBlockRef Then, LLVMBasicBlockRef Catch,
|
||||||
const char *Name);
|
const char *Name);
|
||||||
LLVMValueRef LLVMBuildUnwind(LLVMBuilderRef);
|
|
||||||
LLVMValueRef LLVMBuildResume(LLVMBuilderRef B, LLVMValueRef Exn);
|
LLVMValueRef LLVMBuildResume(LLVMBuilderRef B, LLVMValueRef Exn);
|
||||||
LLVMValueRef LLVMBuildUnreachable(LLVMBuilderRef);
|
LLVMValueRef LLVMBuildUnreachable(LLVMBuilderRef);
|
||||||
|
|
||||||
|
|
|
@ -1683,10 +1683,6 @@ LLVMValueRef LLVMBuildInvoke(LLVMBuilderRef B, LLVMValueRef Fn,
|
||||||
Name));
|
Name));
|
||||||
}
|
}
|
||||||
|
|
||||||
LLVMValueRef LLVMBuildUnwind(LLVMBuilderRef B) {
|
|
||||||
return wrap(unwrap(B)->CreateUnwind());
|
|
||||||
}
|
|
||||||
|
|
||||||
LLVMValueRef LLVMBuildResume(LLVMBuilderRef B, LLVMValueRef Exn) {
|
LLVMValueRef LLVMBuildResume(LLVMBuilderRef B, LLVMValueRef Exn) {
|
||||||
return wrap(unwrap(B)->CreateResume(unwrap(Exn)));
|
return wrap(unwrap(B)->CreateResume(unwrap(Exn)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue