summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2011-10-06 12:39:34 +0000
committerTorok Edwin <edwintorok@gmail.com>2011-10-06 12:39:34 +0000
commit4df1557f4073cd91893a186acfee96bee64b28cc (patch)
treec064a06a866d502243d4c671ec0591ed4bd1d0b4 /include
parent6831b7c645c766a233ff779c26357d1add578c5d (diff)
downloadllvm-4df1557f4073cd91893a186acfee96bee64b28cc.tar.gz
llvm-4df1557f4073cd91893a186acfee96bee64b28cc.tar.bz2
llvm-4df1557f4073cd91893a186acfee96bee64b28cc.tar.xz
Don't require C bindings opcode numbers to be kept in sync.
They are not in sync now, for example Bitcast would show up as LLVMCall. So instead introduce 2 functions that map to and from the opcodes in the C bindings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141290 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm-c/Core.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h
index 2bb7323cde..10e9a80bcb 100644
--- a/include/llvm-c/Core.h
+++ b/include/llvm-c/Core.h
@@ -179,8 +179,8 @@ typedef enum {
LLVMPHI = 44,
LLVMCall = 45,
LLVMSelect = 46,
- /* UserOp1 */
- /* UserOp2 */
+ LLVMUserOp1 = 47,
+ LLVMUserOp2 = 48,
LLVMVAArg = 49,
LLVMExtractElement = 50,
LLVMInsertElement = 51,
@@ -195,7 +195,9 @@ typedef enum {
/* Exception Handling Operators */
LLVMResume = 58,
- LLVMLandingPad = 59
+ LLVMLandingPad = 59,
+ LLVMUnwind = 60
+
} LLVMOpcode;