aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2022-02-17 14:17:36 +0000
committerJay Foad <jay.foad@amd.com>2022-02-17 16:03:13 +0000
commit9071393c18e5264e3bbf3ca3f3584fa5f45be6c2 (patch)
treebc1c6063ac089b5f1e2bf1a2f7f35b69287ea8b8 /clang/lib/Frontend/InitPreprocessor.cpp
parent2f2dcb4fb134a7e06d99ef62ca512c8307187207 (diff)
downloadllvm-9071393c18e5264e3bbf3ca3f3584fa5f45be6c2.zip
llvm-9071393c18e5264e3bbf3ca3f3584fa5f45be6c2.tar.gz
llvm-9071393c18e5264e3bbf3ca3f3584fa5f45be6c2.tar.bz2
[GlobalDCE] Simplify and return Changed = true less often
Removing dead constants should not count as making a change to the module. This means that RemoveUnusedGlobalValue simplifies to just calling removeDeadConstantUsers, so inline it. Differential Revision: https://reviews.llvm.org/D120052
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions