aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-02-01 09:10:45 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-02-01 09:10:45 +0000
commita53c40a59981b6bae7e734fa9e42bc345c0457df (patch)
treef11d5f22e3bcdf9bd067d3e90ba002e1e2557c42 /lib/CodeGen/AsmPrinter.cpp
parent69eda82e77410e2ab9599e9861af2c97a44e863d (diff)
downloadexternal_llvm-a53c40a59981b6bae7e734fa9e42bc345c0457df.zip
external_llvm-a53c40a59981b6bae7e734fa9e42bc345c0457df.tar.gz
external_llvm-a53c40a59981b6bae7e734fa9e42bc345c0457df.tar.bz2
Remove the nasty LABEL hack with a much less evil one. Now llvm.dbg.func.start implies a stoppoint is set. SelectionDAGISel records a new source line but does not create a ISD::LABEL node for this special stoppoint. Asm printer will magically print this label. This ensures nothing is emitted before.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46635 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index 2b83588..2acf287 100644
--- a/lib/CodeGen/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter.cpp
@@ -1285,6 +1285,10 @@ void AsmPrinter::printLabel(const MachineInstr *MI) const {
<< "label" << MI->getOperand(0).getImm() << ":\n";
}
+void AsmPrinter::printLabel(unsigned Id) const {
+ O << "\n" << TAI->getPrivateGlobalPrefix() << "label" << Id << ":\n";
+}
+
/// PrintAsmOperand - Print the specified operand of MI, an INLINEASM
/// instruction, using the specified assembler variant. Targets should
/// overried this to format as appropriate.