aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-02-20 11:10:28 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-02-20 11:10:28 +0000
commit4c71dfe356716e6bc1993ef5efdced08b68fe612 (patch)
treeb5ac49f6a963232367d6456a5bec7e7e5d5f1129 /lib/CodeGen/AsmPrinter.cpp
parentae9f3a3b7c915f725aef5a7250e88eaeddda03c6 (diff)
downloadexternal_llvm-4c71dfe356716e6bc1993ef5efdced08b68fe612.tar.gz
external_llvm-4c71dfe356716e6bc1993ef5efdced08b68fe612.tar.bz2
external_llvm-4c71dfe356716e6bc1993ef5efdced08b68fe612.zip
Update gcc 4.3 warnings fix patch with recent head changes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47368 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index b718958f97..7a01a87872 100644
--- a/lib/CodeGen/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter.cpp
@@ -162,11 +162,12 @@ bool AsmPrinter::doFinalization(Module &M) {
// If the aliasee has external weak linkage it can be referenced only by
// alias itself. In this case it can be not in ExtWeakSymbols list. Emit
// weak reference in such case.
- if (GV->hasExternalWeakLinkage())
+ if (GV->hasExternalWeakLinkage()) {
if (TAI->getWeakRefDirective())
O << TAI->getWeakRefDirective() << Target << "\n";
else
O << "\t.globl\t" << Target << "\n";
+ }
}
}