When looking for symbols, find load addresses in a more robust way.
authorSean Callanan <scallanan@apple.com>
Tue, 23 Feb 2016 23:09:06 +0000 (23:09 +0000)
committerSean Callanan <scallanan@apple.com>
Tue, 23 Feb 2016 23:09:06 +0000 (23:09 +0000)
commitfed0e758cb5f30cf19854315173f199420746ef8
tree486222ac4e7e38213db9affcb4cdd55842bf5243
parentc289b74bd6c6837731459ef9620a859fdd158d4d
When looking for symbols, find load addresses in a more robust way.

IRExecutionUnit previously replicated a bunch of logic that already
existed elsewhere for the purpose of getting a load address for a
symbol.  This approach failed to resolve certain types of symbols.
Instead, we now use functions on SymbolContext to do the address
resolution.

This is a cleanup of IRExecutionUnit::FindInSymbols, and also fixes a
latent bug where we looked at the wrong SymbolContext to determine
whether or not it is external.

<rdar://problem/24770829>

llvm-svn: 261704
lldb/source/Expression/IRExecutionUnit.cpp