diff options
author | Sean Callanan <scallanan@apple.com> | 2017-05-16 23:46:13 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2017-05-16 23:46:13 +0000 |
commit | 9c99faa8563c11895b44d8e59c1a96216dfb17f7 (patch) | |
tree | fef4d3d6c880ca50f9eaa794d32855b084b55b37 /llvm/lib/CodeGen/StackColoring.cpp | |
parent | 6fc88757397387ca1f1c86457231a845f354664a (diff) | |
download | bcm5719-llvm-9c99faa8563c11895b44d8e59c1a96216dfb17f7.tar.gz bcm5719-llvm-9c99faa8563c11895b44d8e59c1a96216dfb17f7.zip |
[Expression parser] Look up module symbols before hunting globally
When it resolves symbol-only variables, the expression parser
currently looks only in the global module list. It should prefer
the current module.
I've fixed that behavior by making it search the current module
first, and only search globally if it finds nothing. I've also
added a test case.
After review, I moved the core of the lookup algorithm into
SymbolContext for use by other code that needs it.
Thanks to Greg Clayton and Pavel Labath for their help.
Differential Revision: https://reviews.llvm.org/D33083
llvm-svn: 303223
Diffstat (limited to 'llvm/lib/CodeGen/StackColoring.cpp')
0 files changed, 0 insertions, 0 deletions