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.i13
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBInstruction.i b/lldb/scripts/Python/interface/SBInstruction.i
index 7be6e911ed0..a0595addf1c 100644
--- a/lldb/scripts/Python/interface/SBInstruction.i
+++ b/lldb/scripts/Python/interface/SBInstruction.i
@@ -62,6 +62,19 @@ public:
bool
TestEmulation (lldb::SBStream &output_stream, const char *test_file);
+
+ %pythoncode %{
+ __swig_getmethods__["addr"] = GetAddress
+ if _newclass: x = property(GetAddress, None)
+
+ __swig_getmethods__["size"] = GetByteSize
+ if _newclass: x = property(GetByteSize, None)
+
+ __swig_getmethods__["is_branch"] = DoesBranch
+ if _newclass: x = property(DoesBranch, None)
+ %}
+
+
};
} // namespace lldb
OpenPOWER on IntegriCloud