Add methods to instructions to retrieve metadata and determine if metadata exists for the instruction.

This commit is contained in:
Conner Bryan 2013-04-27 09:01:32 -03:00
commit e74b26f84c

View file

@ -1688,6 +1688,12 @@ class Instruction(User):
def set_metadata(self, kind, metadata):
self._ptr.setMetadata(kind, metadata._ptr)
def has_metadata(self):
return self._ptr.hasMetadata()
def get_metadata(self, kind):
return self._ptr.getMetadata(kind)
@property
def opcode(self):