summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StackColoring.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2017-05-16 23:46:13 +0000
committerSean Callanan <scallanan@apple.com>2017-05-16 23:46:13 +0000
commit9c99faa8563c11895b44d8e59c1a96216dfb17f7 (patch)
treefef4d3d6c880ca50f9eaa794d32855b084b55b37 /llvm/lib/CodeGen/StackColoring.cpp
parent6fc88757397387ca1f1c86457231a845f354664a (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud