summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-12-24 22:44:29 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-12-24 22:44:29 +0000
commit8e92dfee20ab94503ea4f499044ceb29360faba4 (patch)
tree92491fb737b9a5febc9930e35207d5092c289cf1 /llvm/lib/CodeGen
parent45010c92a8694d1f61307751280841232b4b615b (diff)
downloadbcm5719-llvm-8e92dfee20ab94503ea4f499044ceb29360faba4.tar.gz
bcm5719-llvm-8e92dfee20ab94503ea4f499044ceb29360faba4.zip
CodeGen: Allow aliases to be overridden by variables
llvm-svn: 224827
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index ec7da6b99c4..93445a8c84f 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -337,6 +337,8 @@ void AsmPrinter::EmitGlobalVariable(const GlobalVariable *GV) {
if (!GV->hasInitializer()) // External globals require no extra code.
return;
+ GVSym->redefineIfPossible();
+
if (MAI->hasDotTypeDotSizeDirective())
OutStreamer.EmitSymbolAttribute(GVSym, MCSA_ELF_TypeObject);
OpenPOWER on IntegriCloud