We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22f5268 commit e3829bcCopy full SHA for e3829bc
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -1084,11 +1084,9 @@ void AsmPrinter::emitFunctionEntryLabel() {
1084
if (TM.getTargetTriple().isOSBinFormatELF()) {
1085
MCSymbol *Sym = getSymbolPreferLocal(MF->getFunction());
1086
if (Sym != CurrentFnSym) {
1087
- cast<MCSymbolELF>(Sym)->setType(ELF::STT_FUNC);
1088
CurrentFnBeginLocal = Sym;
1089
OutStreamer->emitLabel(Sym);
1090
- if (MAI->hasDotTypeDotSizeDirective())
1091
- OutStreamer->emitSymbolAttribute(Sym, MCSA_ELF_TypeFunction);
+ OutStreamer->emitSymbolAttribute(Sym, MCSA_ELF_TypeFunction);
1092
}
1093
1094
0 commit comments