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/source/API/SBSymbol.cpp | |
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/source/API/SBSymbol.cpp')
-rw-r--r-- | lldb/source/API/SBSymbol.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lldb/source/API/SBSymbol.cpp b/lldb/source/API/SBSymbol.cpp index 4a89567f3bb..9b82f368acd 100644 --- a/lldb/source/API/SBSymbol.cpp +++ b/lldb/source/API/SBSymbol.cpp @@ -199,3 +199,20 @@ SBSymbol::GetType () return m_opaque_ptr->GetType(); return eSymbolTypeInvalid; } + +bool +SBSymbol::IsExternal() +{ + if (m_opaque_ptr) + return m_opaque_ptr->IsExternal(); + return false; +} + +bool +SBSymbol::IsSynthetic() +{ + if (m_opaque_ptr) + return m_opaque_ptr->IsSynthetic(); + return false; +} + |