diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-02-21 11:53:32 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-02-21 11:53:32 +0000 |
commit | b5bd026a756d8650f2a94607c9b1dc34cf1c024a (patch) | |
tree | 178d1c6b7d74f4fa683da433083ed48e6ab3b069 /lib/CodeGen | |
parent | 8e87e65d28084a5eb0c163256d8473edc2636c5b (diff) | |
download | external_llvm-b5bd026a756d8650f2a94607c9b1dc34cf1c024a.zip external_llvm-b5bd026a756d8650f2a94607c9b1dc34cf1c024a.tar.gz external_llvm-b5bd026a756d8650f2a94607c9b1dc34cf1c024a.tar.bz2 |
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 :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 678488e..d4dd795 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/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'; - } } } |