diff options
author | Johnny Chen <johnny.chen@apple.com> | 2012-03-16 21:55:42 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2012-03-16 21:55:42 +0000 |
commit | 1b72f09150b1333e33773882e9c035ac896acc5e (patch) | |
tree | 2d03ba33e15db13fdbd92fb68812690f937f9ed6 /lldb/scripts/Python/interface | |
parent | f6af30f4c7d91d61d2ccb7cdb450872c11eef214 (diff) | |
download | bcm5719-llvm-1b72f09150b1333e33773882e9c035ac896acc5e.tar.gz bcm5719-llvm-1b72f09150b1333e33773882e9c035ac896acc5e.zip |
Export the APIs submitted by Dawn to the Python bindings. Add a simple test case for the SBModule.compile_unit_iter() API.
llvm-svn: 152952
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r-- | lldb/scripts/Python/interface/SBCompileUnit.i | 9 | ||||
-rw-r--r-- | lldb/scripts/Python/interface/SBModule.i | 6 |
2 files changed, 15 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBCompileUnit.i b/lldb/scripts/Python/interface/SBCompileUnit.i index be4f740c12e..6f9d023295e 100644 --- a/lldb/scripts/Python/interface/SBCompileUnit.i +++ b/lldb/scripts/Python/interface/SBCompileUnit.i @@ -77,6 +77,15 @@ public: lldb::SBFileSpec *inline_file_spec, bool exact) const; + SBFileSpec + GetSupportFileAtIndex (uint32_t idx) const; + + uint32_t + GetNumSupportFiles () const; + + uint32_t + FindSupportFileIndex (uint32_t start_idx, const SBFileSpec &sb_file, bool full); + bool GetDescription (lldb::SBStream &description); diff --git a/lldb/scripts/Python/interface/SBModule.i b/lldb/scripts/Python/interface/SBModule.i index c826134ff42..1b6d4ecac43 100644 --- a/lldb/scripts/Python/interface/SBModule.i +++ b/lldb/scripts/Python/interface/SBModule.i @@ -165,6 +165,12 @@ public: bool GetDescription (lldb::SBStream &description); + uint32_t + GetNumCompileUnits(); + + lldb::SBCompileUnit + GetCompileUnitAtIndex (uint32_t); + size_t GetNumSymbols (); |