aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2008-01-01 05:50:53 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2008-01-01 05:50:53 +0000
commitab477ccde9382b58d3883eeb574ba09469d4cde8 (patch)
treeba54a82afb8a1abe9a4e82a07c585847f2f19718 /include
parenta91a7d594ff1e1503731ca92f72e627bdfd18f3f (diff)
downloadexternal_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.h4
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);