From 2fc723099f1cd15c92836cf4dc0832255cef0740 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 14 Nov 2014 23:17:47 +0000 Subject: 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 --- llvm/lib/Analysis/Analysis.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Analysis/Analysis.cpp') 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) { -- cgit v1.2.3