aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-26 23:53:39 +0000
committerChris Lattner <sabre@nondot.org>2010-01-26 23:53:39 +0000
commit9bc20ab519d47146a9716d7cff2a892da78774a6 (patch)
treee38cd833f37e488baa8e4c4a783af1167421050a /lib
parent111a3193b5e25f8765221f2e94fba888155fe4eb (diff)
downloadexternal_llvm-9bc20ab519d47146a9716d7cff2a892da78774a6.zip
external_llvm-9bc20ab519d47146a9716d7cff2a892da78774a6.tar.gz
external_llvm-9bc20ab519d47146a9716d7cff2a892da78774a6.tar.bz2
mcize label emission for functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 50eff9c..8c9b0f1 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -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.