summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/interface/SBInstruction.i
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/scripts/Python/interface/SBInstruction.i')
-rw-r--r--lldb/scripts/Python/interface/SBInstruction.i20
1 files changed, 20 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBInstruction.i b/lldb/scripts/Python/interface/SBInstruction.i
index a0595addf1c..01cebb1590c 100644
--- a/lldb/scripts/Python/interface/SBInstruction.i
+++ b/lldb/scripts/Python/interface/SBInstruction.i
@@ -64,6 +64,26 @@ public:
TestEmulation (lldb::SBStream &output_stream, const char *test_file);
%pythoncode %{
+ def __mnemonic_property__ (self):
+ return self.GetMnemonic (target)
+ def __operands_property__ (self):
+ return self.GetOperands (target)
+ def __comment_property__ (self):
+ return self.GetComment (target)
+ def __file_addr_property__ (self):
+ return self.GetAddress ().GetFileAddress()
+ def __load_adrr_property__ (self):
+ return self.GetComment (target)
+
+ __swig_getmethods__["mnemonic"] = __mnemonic_property__
+ if _newclass: x = property(__mnemonic_property__, None)
+
+ __swig_getmethods__["operands"] = __operands_property__
+ if _newclass: x = property(__operands_property__, None)
+
+ __swig_getmethods__["comment"] = __comment_property__
+ if _newclass: x = property(__comment_property__, None)
+
__swig_getmethods__["addr"] = GetAddress
if _newclass: x = property(GetAddress, None)
OpenPOWER on IntegriCloud