Fix ConstantExpr opcode to use C++ enum values.

Note: C++ opcode is different from C opcode values.
Add ConstantExpr opcode name.
Add test for these.
This commit is contained in:
Siu Kwan Lam 2012-09-01 20:53:33 -07:00
commit 5d14461c84
5 changed files with 51 additions and 3 deletions

View file

@ -53,6 +53,18 @@
extern "C" {
#endif
/*
* Wraps ConstantExpr::getOpcodeName();
*/
const char *LLVMGetConstExprOpcodeName(LLVMValueRef inst);
/*
* Wraps ConstantExpr::getOpcode();
*/
unsigned LLVMGetConstExprOpcode(LLVMValueRef inst);
/*
* Wraps LoadInst::SetAlignment
*/