diff options
author | Sean Callanan <scallanan@apple.com> | 2011-12-01 02:04:16 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2011-12-01 02:04:16 +0000 |
commit | 947ccc73965cb1102bcab932f55c56729d02cf03 (patch) | |
tree | 2b442302dd0d8e9b6a5c3e8261676975c35de117 /lldb/source/Expression/IRForTarget.cpp | |
parent | c1870b2633e52a98af1cde1043fc9491902a5f75 (diff) | |
download | bcm5719-llvm-947ccc73965cb1102bcab932f55c56729d02cf03.tar.gz bcm5719-llvm-947ccc73965cb1102bcab932f55c56729d02cf03.zip |
Made symbol lookup in the expression parser more
robust:
- Now a client can specify what kind of symbols
are needed; notably, this allows looking up
Objective-C class symbols specifically.
- In the class of symbols being looked up, if
one is non-NULL and others are NULL, LLDB now
prefers the non-NULL one.
llvm-svn: 145554
Diffstat (limited to 'lldb/source/Expression/IRForTarget.cpp')
-rw-r--r-- | lldb/source/Expression/IRForTarget.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp index cc97706dcf9..02c3135e469 100644 --- a/lldb/source/Expression/IRForTarget.cpp +++ b/lldb/source/Expression/IRForTarget.cpp @@ -1676,7 +1676,7 @@ IRForTarget::HandleSymbol (Value *symbol) lldb_private::ConstString name(symbol->getName().str().c_str()); - lldb::addr_t symbol_addr = m_decl_map->GetSymbolAddress (name); + lldb::addr_t symbol_addr = m_decl_map->GetSymbolAddress (name, lldb::eSymbolTypeAny); if (symbol_addr == LLDB_INVALID_ADDRESS) { @@ -1748,7 +1748,7 @@ IRForTarget::HandleObjCClass(Value *classlist_reference) StringRef name(initializer->getName()); lldb_private::ConstString name_cstr(name.str().c_str()); - lldb::addr_t class_ptr = m_decl_map->GetSymbolAddress(name_cstr); + lldb::addr_t class_ptr = m_decl_map->GetSymbolAddress(name_cstr, lldb::eSymbolTypeRuntime); if (log) log->Printf("Found reference to Objective-C class %s (0x%llx)", name_cstr.AsCString(), (unsigned long long)class_ptr); |