Implement property ConstantExpr.opcode

Use LLVM C-API function `LLVMGetConstOpcode`
This commit is contained in:
Wladimir J. van der Laan 2012-09-01 17:31:08 +02:00
commit c033ba02a4
2 changed files with 5 additions and 1 deletions

View file

@ -1172,7 +1172,9 @@ class Constant(User):
class ConstantExpr(Constant):
pass
@property
def opcode(self):
return _core.LLVMGetConstOpcode(self.ptr)
class ConstantAggregateZero(Constant):