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 | 480218b6bdd0a22638a7ff7d9db757753f1c2dc4 (patch) | |
tree | 178d1c6b7d74f4fa683da433083ed48e6ab3b069 /lib/CodeGen | |
parent | 5b882f2d8b12fc25f51acf0a7e0d3171261fdc57 (diff) | |
download | external_llvm-480218b6bdd0a22638a7ff7d9db757753f1c2dc4.tar.gz external_llvm-480218b6bdd0a22638a7ff7d9db757753f1c2dc4.tar.bz2 external_llvm-480218b6bdd0a22638a7ff7d9db757753f1c2dc4.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 :)
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 678488e1b4..d4dd79572e 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'; - } } } |