mcize label emission for functions.
authorChris Lattner <sabre@nondot.org>
Tue, 26 Jan 2010 23:53:39 +0000 (23:53 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 26 Jan 2010 23:53:39 +0000 (23:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94624 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/AsmPrinter.cpp

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