diff options
author | David Majnemer <david.majnemer@gmail.com> | 2013-08-25 09:18:19 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2013-08-25 09:18:19 +0000 |
commit | b31eebd3fd8384d4355dab1efbba6be339de70cd (patch) | |
tree | b2615af92661933da7b77c562788373840f3630a | |
parent | 5e5c3069cd92741852f10a7395133d6d79c5bce7 (diff) | |
download | external_llvm-b31eebd3fd8384d4355dab1efbba6be339de70cd.zip external_llvm-b31eebd3fd8384d4355dab1efbba6be339de70cd.tar.gz external_llvm-b31eebd3fd8384d4355dab1efbba6be339de70cd.tar.bz2 |
AsmPrinter: Get rid of llvm$workaround$fake$stub$
We currently emit labels with the prefix Lllvm$workaround$fake$stub$ if
the target's MCAsmInfo has getLinkOnceDirective() mapped to something
interesting. This was apparently a work around introduced in r31033 for
binutils that we don't need anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189187 91177308-0d34-0410-b5e6-96231b3b80d8
-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 33bae71..a427c26 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -459,16 +459,6 @@ void AsmPrinter::EmitFunctionHeader() { OutStreamer.EmitLabel(DeadBlockSyms[i]); } - // Add some workaround for linkonce linkage on Cygwin\MinGW. - if (MAI->getLinkOnceDirective() != 0 && - (F->hasLinkOnceLinkage() || F->hasWeakLinkage())) { - // FIXME: What is this? - MCSymbol *FakeStub = - OutContext.GetOrCreateSymbol(Twine("Lllvm$workaround$fake$stub$")+ - CurrentFnSym->getName()); - OutStreamer.EmitLabel(FakeStub); - } - // Emit pre-function debug and/or EH information. if (DE) { NamedRegionTimer T(EHTimerName, DWARFGroupName, TimePassesIsEnabled); |