summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-02-21 11:53:32 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-02-21 11:53:32 +0000
commit42aae86590414c6b6297a65d8d81d86782bb9352 (patch)
tree234e55125eda57f34209f57a4b96f73578bb00c0 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parent9e5ed6d329fa84404ce003d3249bd534b432a99a (diff)
downloadbcm5719-llvm-42aae86590414c6b6297a65d8d81d86782bb9352.tar.gz
bcm5719-llvm-42aae86590414c6b6297a65d8d81d86782bb9352.zip
Drop bunch of half-working stuff in the ext_weak linkage support.
Now we're using one gross, but quite robust hack :) (previous ones did not work, for example, when ext_weak symbol was used deep inside constant expression in the initializer). The proper fix of this problem will require some quite huge asmprinter changes and that's why was postponed. This fixes PR3629 by the way :) llvm-svn: 65230
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 678488e1b41..d4dd79572ed 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -205,16 +205,6 @@ bool AsmPrinter::doFinalization(Module &M) {
printVisibility(Name, I->getVisibility());
O << TAI->getSetDirective() << ' ' << Name << ", " << Target << '\n';
-
- // 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 (TAI->getWeakRefDirective())
- O << TAI->getWeakRefDirective() << Target << '\n';
- else
- O << "\t.globl\t" << Target << '\n';
- }
}
}
OpenPOWER on IntegriCloud