summaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/AsmPrinter.h
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
commit1b08bbca5592351a940bcd164bdec724ee954326 (patch)
treef11d5f22e3bcdf9bd067d3e90ba002e1e2557c42 /include/llvm/CodeGen/AsmPrinter.h
parenta647c92ec2b3c91e1e6de25cc5c7860912c7626b (diff)
downloadexternal_llvm-1b08bbca5592351a940bcd164bdec724ee954326.zip
external_llvm-1b08bbca5592351a940bcd164bdec724ee954326.tar.gz
external_llvm-1b08bbca5592351a940bcd164bdec724ee954326.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 'include/llvm/CodeGen/AsmPrinter.h')
-rw-r--r--include/llvm/CodeGen/AsmPrinter.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h
index 3d1344e..cda213c 100644
--- a/include/llvm/CodeGen/AsmPrinter.h
+++ b/include/llvm/CodeGen/AsmPrinter.h
@@ -276,6 +276,11 @@ namespace llvm {
unsigned ForcedAlignBits = 0, bool UseFillExpr = false,
unsigned FillValue = 0) const;
+ /// printLabel - This method prints a local label used by debug and
+ /// exception handling tables.
+ void printLabel(const MachineInstr *MI) const;
+ void printLabel(unsigned Id) const;
+
protected:
/// EmitZeros - Emit a block of zeros.
///
@@ -299,10 +304,6 @@ namespace llvm {
/// instruction that is an inline asm.
void printInlineAsm(const MachineInstr *MI) const;
- /// printLabel - This method prints a local label used by debug and
- /// exception handling tables.
- void printLabel(const MachineInstr *MI) const;
-
/// printBasicBlockLabel - This method prints the label for the specified
/// MachineBasicBlock
virtual void printBasicBlockLabel(const MachineBasicBlock *MBB,