summaryrefslogtreecommitdiffstats
path: root/lldb/source/Symbol/SymbolContext.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-04-03 02:00:15 +0000
committerGreg Clayton <gclayton@apple.com>2013-04-03 02:00:15 +0000
commit43fe217b119998264be04a773c4770592663c306 (patch)
tree36b05c4a7a937c9a94c355dfe23c16a23bf9d824 /lldb/source/Symbol/SymbolContext.cpp
parent1786cb2f018c8bce823ed5c3d36e1dbd773dee79 (diff)
downloadbcm5719-llvm-43fe217b119998264be04a773c4770592663c306.tar.gz
bcm5719-llvm-43fe217b119998264be04a773c4770592663c306.zip
<rdar://problem/13506727>
Symbol table function names should support lookups like symbols with debug info. To fix this I: - Gutted the way FindFunctions is used, there used to be way too much smarts only in the DWARF plug-in - Made it more efficient by chopping the name up once and using simpler queries so that SymbolFile and Symtab plug-ins don't need to do as much - Filter the results at a higher level - Make the lldb_private::Symtab able to chop up C++ mangled names and make as much sense out of them as possible and also be able to search by basename, fullname, method name, and selector name. llvm-svn: 178608
Diffstat (limited to 'lldb/source/Symbol/SymbolContext.cpp')
-rw-r--r--lldb/source/Symbol/SymbolContext.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/source/Symbol/SymbolContext.cpp b/lldb/source/Symbol/SymbolContext.cpp
index 97fe9061a21..49cb1c4f3fc 100644
--- a/lldb/source/Symbol/SymbolContext.cpp
+++ b/lldb/source/Symbol/SymbolContext.cpp
@@ -1056,6 +1056,17 @@ SymbolContextList::GetContextAtIndex(size_t idx, SymbolContext& sc) const
}
bool
+SymbolContextList::GetLastContext(SymbolContext& sc) const
+{
+ if (!m_symbol_contexts.empty())
+ {
+ sc = m_symbol_contexts.back();
+ return true;
+ }
+ return false;
+}
+
+bool
SymbolContextList::RemoveContextAtIndex (size_t idx)
{
if (idx < m_symbol_contexts.size())
OpenPOWER on IntegriCloud