From 74ae3f5a4569a94beeef1a86a01868346d2f58aa Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Mon, 2 Apr 2012 20:08:08 +0000 Subject: 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 --- lldb/source/API/SBSymbol.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'lldb/source/API/SBSymbol.cpp') 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; +} + -- cgit v1.2.3