summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/PowerPC/Target.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2018-11-09 12:56:49 +0000
committerSam McCall <sam.mccall@gmail.com>2018-11-09 12:56:49 +0000
commit72ccf00b1743f8c81f12b36156079e16f4c09893 (patch)
tree729d16fcb21a0ebc23e30170a40d2233acdd3648 /llvm/tools/llvm-exegesis/lib/PowerPC/Target.cpp
parentdffec12f33cc0387a323e065638486f2e2bc23c4 (diff)
downloadbcm5719-llvm-72ccf00b1743f8c81f12b36156079e16f4c09893.tar.gz
bcm5719-llvm-72ccf00b1743f8c81f12b36156079e16f4c09893.zip
[clangd] Make TestTU build with preamble, and fix the fallout.
Our testing didn't reflect reality: live clangd almost always uses a preamble, and sometimes the preamble behaves differently. This patch fixes a common test helper to be more realistic. Preamble doesn't preserve information about which tokens come from the command-line (this gets inlined into a source file). So remove logic that attempts to treat symbols with such names differently. A SymbolCollectorTest tries to verify that locals in headers are not indexed, with preamble enabled this is only meaningful for locals of auto-typed functions (otherwise the bodies aren't parsed). Tests were relying on the fact that the findAnyDecl helper actually did expose symbols from headers. Resolve by making all these functions consistently able to find symbols in headers/preambles. llvm-svn: 346488
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/PowerPC/Target.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud