diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-11-14 23:17:47 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-11-14 23:17:47 +0000 |
commit | 2fc723099f1cd15c92836cf4dc0832255cef0740 (patch) | |
tree | 739abdf2899a9fe45ea4f92b2ab3bbe3d19e0ae3 /llvm/lib/Analysis/Analysis.cpp | |
parent | 183cb6e35db5f9c5f35f0fcb82295db2e8e77057 (diff) | |
download | bcm5719-llvm-2fc723099f1cd15c92836cf4dc0832255cef0740.tar.gz bcm5719-llvm-2fc723099f1cd15c92836cf4dc0832255cef0740.zip |
Don't make assumptions about the name of private global variables.
Private variables are can be renamed, so it is not reliable to make
decisions on the name.
The name is also dropped by the assembler before getting to the
linker, so using the name causes a disconnect between how llvm makes a
decision (var name) and how the linker makes a decision (section it is
in).
This patch changes one case where we were looking at the variable name to use
the section instead.
Test tuning by Michael Gottesman.
llvm-svn: 222061
Diffstat (limited to 'llvm/lib/Analysis/Analysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/Analysis.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/Analysis.cpp b/llvm/lib/Analysis/Analysis.cpp index f64bf0ec2c4..7f5797bfb37 100644 --- a/llvm/lib/Analysis/Analysis.cpp +++ b/llvm/lib/Analysis/Analysis.cpp @@ -68,6 +68,7 @@ void llvm::initializeAnalysis(PassRegistry &Registry) { initializeTargetTransformInfoAnalysisGroup(Registry); initializeTypeBasedAliasAnalysisPass(Registry); initializeScopedNoAliasAAPass(Registry); + initializePAEvalPass(Registry); } void LLVMInitializeAnalysis(LLVMPassRegistryRef R) { |