aboutsummaryrefslogtreecommitdiff
path: root/lldb/scripts/Python/interface/SBCompileUnit.i
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-01-29 06:07:39 +0000
committerGreg Clayton <gclayton@apple.com>2012-01-29 06:07:39 +0000
commit13d1950ae6eaf579cbecab1c0515d58f5fa2b648 (patch)
tree082fa177e8ac54f51cf9cec03db79f892dd39985 /lldb/scripts/Python/interface/SBCompileUnit.i
parent6e1c0123855f6eacda37bd2c1bd9b29c8c99c1cb (diff)
downloadllvm-13d1950ae6eaf579cbecab1c0515d58f5fa2b648.zip
llvm-13d1950ae6eaf579cbecab1c0515d58f5fa2b648.tar.gz
llvm-13d1950ae6eaf579cbecab1c0515d58f5fa2b648.tar.bz2
Added the ability to get the target triple, byte order and address byte size
from the SBTarget and SBModule interfaces. Also added many python properties for easier access to many things from many SB objects. llvm-svn: 149191
Diffstat (limited to 'lldb/scripts/Python/interface/SBCompileUnit.i')
-rw-r--r--lldb/scripts/Python/interface/SBCompileUnit.i8
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBCompileUnit.i b/lldb/scripts/Python/interface/SBCompileUnit.i
index 6b37d1d..be4f740c 100644
--- a/lldb/scripts/Python/interface/SBCompileUnit.i
+++ b/lldb/scripts/Python/interface/SBCompileUnit.i
@@ -79,6 +79,14 @@ public:
bool
GetDescription (lldb::SBStream &description);
+
+ %pythoncode %{
+ __swig_getmethods__["file"] = GetFileSpec
+ if _newclass: x = property(GetFileSpec, None)
+
+ __swig_getmethods__["num_line_entries"] = GetNumLineEntries
+ if _newclass: x = property(GetNumLineEntries, None)
+ %}
};
} // namespace lldb