mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
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
This commit is contained in:
@@ -459,16 +459,6 @@ void AsmPrinter::EmitFunctionHeader() {
|
|||||||
OutStreamer.EmitLabel(DeadBlockSyms[i]);
|
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.
|
// Emit pre-function debug and/or EH information.
|
||||||
if (DE) {
|
if (DE) {
|
||||||
NamedRegionTimer T(EHTimerName, DWARFGroupName, TimePassesIsEnabled);
|
NamedRegionTimer T(EHTimerName, DWARFGroupName, TimePassesIsEnabled);
|
||||||
|
Reference in New Issue
Block a user