diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-01-01 05:50:53 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2008-01-01 05:50:53 +0000 |
commit | ab477ccde9382b58d3883eeb574ba09469d4cde8 (patch) | |
tree | ba54a82afb8a1abe9a4e82a07c585847f2f19718 /include | |
parent | a91a7d594ff1e1503731ca92f72e627bdfd18f3f (diff) | |
download | external_llvm-ab477ccde9382b58d3883eeb574ba09469d4cde8.zip external_llvm-ab477ccde9382b58d3883eeb574ba09469d4cde8.tar.gz external_llvm-ab477ccde9382b58d3883eeb574ba09469d4cde8.tar.bz2 |
Adding C bindings for SwitchInst::addCase.
Patch by Bryan O'Sullivan!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm-c/Core.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index 0d446d6..9def515 100644 --- a/include/llvm-c/Core.h +++ b/include/llvm-c/Core.h @@ -434,6 +434,10 @@ LLVMValueRef LLVMBuildInvoke(LLVMBuilderRef, LLVMValueRef Fn, LLVMValueRef LLVMBuildUnwind(LLVMBuilderRef); LLVMValueRef LLVMBuildUnreachable(LLVMBuilderRef); +/* Add a case to the switch instruction */ +void LLVMAddCase(LLVMValueRef Switch, LLVMValueRef OnVal, + LLVMBasicBlockRef Dest); + /* Arithmetic */ LLVMValueRef LLVMBuildAdd(LLVMBuilderRef, LLVMValueRef LHS, LLVMValueRef RHS, const char *Name); |