[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCInstrInfo.h

Chris Lattner sabre at nondot.org
Tue Oct 17 15:39:48 PDT 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCInstrInfo.h updated: 1.17 -> 1.18
---
Log message:

expose DWARF_LABEL opcode# so the branch folder can update debug info properly.



---
Diffs of the changes:  (+7 -0)

 PPCInstrInfo.h |    7 +++++++
 1 files changed, 7 insertions(+)


Index: llvm/lib/Target/PowerPC/PPCInstrInfo.h
diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.h:1.17 llvm/lib/Target/PowerPC/PPCInstrInfo.h:1.18
--- llvm/lib/Target/PowerPC/PPCInstrInfo.h:1.17	Fri Oct 13 16:21:17 2006
+++ llvm/lib/Target/PowerPC/PPCInstrInfo.h	Tue Oct 17 17:39:33 2006
@@ -77,6 +77,13 @@
   /// This is used for addressing modes.
   virtual const TargetRegisterClass *getPointerRegClass() const;  
 
+  /// getDWARF_LABELOpcode - Return the opcode of the target's DWARF_LABEL
+  /// instruction if it has one.  This is used by codegen passes that update
+  /// DWARF line number info as they modify the code.
+  virtual unsigned getDWARF_LABELOpcode() const {
+    return PPC::DWARF_LABEL;
+  }
+  
   // Return true if the instruction is a register to register move and
   // leave the source and dest operands in the passed parameters.
   //






More information about the llvm-commits mailing list