Don't require C bindings opcode numbers to be kept in sync.
authorTorok Edwin <edwintorok@gmail.com>
Thu, 6 Oct 2011 12:39:34 +0000 (12:39 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Thu, 6 Oct 2011 12:39:34 +0000 (12:39 +0000)
commit4df1557f4073cd91893a186acfee96bee64b28cc
treec064a06a866d502243d4c671ec0591ed4bd1d0b4
parent6831b7c645c766a233ff779c26357d1add578c5d
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
include/llvm-c/Core.h
lib/VMCore/Core.cpp