diff options
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter.cpp | 3 |
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"; + } } } |