Drop bunch of half-working stuff in the ext_weak linkage support.
authorAnton Korobeynikov <asl@math.spbu.ru>
Sat, 21 Feb 2009 11:53:32 +0000 (11:53 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sat, 21 Feb 2009 11:53:32 +0000 (11:53 +0000)
commitb5bd026a756d8650f2a94607c9b1dc34cf1c024a
tree178d1c6b7d74f4fa683da433083ed48e6ab3b069
parent8e87e65d28084a5eb0c163256d8473edc2636c5b
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
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.cpp
test/CodeGen/X86/2009-02-21-ExtWeakInitializer.ll [new file with mode: 0644]