mcize label emission for functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94624 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-01-26 23:53:39 +00:00
parent 111a3193b5
commit 9bc20ab519

View File

@ -308,17 +308,17 @@ void AsmPrinter::EmitFunctionHeader() {
if (MAI->hasDotTypeDotSizeDirective()) if (MAI->hasDotTypeDotSizeDirective())
OutStreamer.EmitSymbolAttribute(CurrentFnSym, MCSA_ELF_TypeFunction); OutStreamer.EmitSymbolAttribute(CurrentFnSym, MCSA_ELF_TypeFunction);
O << *CurrentFnSym << ':';
if (VerboseAsm) { if (VerboseAsm) {
O.PadToColumn(MAI->getCommentColumn()); WriteAsOperand(OutStreamer.GetCommentOS(), F,
O << MAI->getCommentString() << ' '; /*PrintType=*/false, F->getParent());
WriteAsOperand(O, F, /*PrintType=*/false, F->getParent()); OutStreamer.GetCommentOS() << '\n';
} }
O << '\n'; OutStreamer.EmitLabel(CurrentFnSym);
// Add some workaround for linkonce linkage on Cygwin\MinGW. // Add some workaround for linkonce linkage on Cygwin\MinGW.
if (MAI->getLinkOnceDirective() != 0 && if (MAI->getLinkOnceDirective() != 0 &&
(F->hasLinkOnceLinkage() || F->hasWeakLinkage())) (F->hasLinkOnceLinkage() || F->hasWeakLinkage()))
// FIXME: What is this?
O << "Lllvm$workaround$fake$stub$" << *CurrentFnSym << ":\n"; O << "Lllvm$workaround$fake$stub$" << *CurrentFnSym << ":\n";
// Emit pre-function debug and/or EH information. // Emit pre-function debug and/or EH information.