diff options
author | Torok Edwin <edwintorok@gmail.com> | 2011-10-06 12:39:34 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2011-10-06 12:39:34 +0000 |
commit | 4df1557f4073cd91893a186acfee96bee64b28cc (patch) | |
tree | c064a06a866d502243d4c671ec0591ed4bd1d0b4 /include/llvm-c/Core.h | |
parent | 6831b7c645c766a233ff779c26357d1add578c5d (diff) |
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/llvm-c/Core.h')
-rw-r--r-- | include/llvm-c/Core.h | 8 |
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; |