diff options
author | Greg Clayton <gclayton@apple.com> | 2012-04-02 20:08:08 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-04-02 20:08:08 +0000 |
commit | 74ae3f5a4569a94beeef1a86a01868346d2f58aa (patch) | |
tree | 726a4a230ba96adaa74c114a3b8957680afdec41 /lldb/scripts/Python/interface | |
parent | aaafacd07ed17080f399a2613702f48b8fad1bb8 (diff) | |
download | bcm5719-llvm-74ae3f5a4569a94beeef1a86a01868346d2f58aa.tar.gz bcm5719-llvm-74ae3f5a4569a94beeef1a86a01868346d2f58aa.zip |
Export the ability to see if a symbol is externally visible and also if the symbol was synthetically added to the symbol table (the symbol was not part of the symbol table itself but came from another section).
llvm-svn: 153893
Diffstat (limited to 'lldb/scripts/Python/interface')
-rw-r--r-- | lldb/scripts/Python/interface/SBSymbol.i | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lldb/scripts/Python/interface/SBSymbol.i b/lldb/scripts/Python/interface/SBSymbol.i index 0b5342a53f6..4995c4f9c49 100644 --- a/lldb/scripts/Python/interface/SBSymbol.i +++ b/lldb/scripts/Python/interface/SBSymbol.i @@ -52,7 +52,13 @@ public: bool GetDescription (lldb::SBStream &description); - + + bool + IsExternal(); + + bool + IsSynthetic(); + %pythoncode %{ def get_instructions_from_current_target (self): return self.GetInstructions (target) @@ -77,6 +83,13 @@ public: __swig_getmethods__["instructions"] = get_instructions_from_current_target if _newclass: x = property(get_instructions_from_current_target, None) + + __swig_getmethods__["external"] = IsExternal + if _newclass: x = property(IsExternal, None) + + __swig_getmethods__["synthetic"] = IsSynthetic + if _newclass: x = property(IsSynthetic, None) + %} |