[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.cpp X86InstrInfo.h

Chris Lattner sabre at nondot.org
Tue Oct 17 15:41:59 PDT 2006



Changes in directory llvm/lib/Target/X86:

X86InstrInfo.cpp updated: 1.62 -> 1.63
X86InstrInfo.h updated: 1.55 -> 1.56
---
Log message:

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



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

 X86InstrInfo.cpp |    7 +++++++
 X86InstrInfo.h   |    5 +++++
 2 files changed, 12 insertions(+)


Index: llvm/lib/Target/X86/X86InstrInfo.cpp
diff -u llvm/lib/Target/X86/X86InstrInfo.cpp:1.62 llvm/lib/Target/X86/X86InstrInfo.cpp:1.63
--- llvm/lib/Target/X86/X86InstrInfo.cpp:1.62	Fri Oct 13 15:40:42 2006
+++ llvm/lib/Target/X86/X86InstrInfo.cpp	Tue Oct 17 17:41:45 2006
@@ -25,6 +25,13 @@
     TM(tm), RI(tm, *this) {
 }
 
+/// 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.
+unsigned X86InstrInfo::getDWARF_LABELOpcode() const {
+  return X86::DWARF_LABEL;
+}
+
 
 bool X86InstrInfo::isMoveInstr(const MachineInstr& MI,
                                unsigned& sourceReg,


Index: llvm/lib/Target/X86/X86InstrInfo.h
diff -u llvm/lib/Target/X86/X86InstrInfo.h:1.55 llvm/lib/Target/X86/X86InstrInfo.h:1.56
--- llvm/lib/Target/X86/X86InstrInfo.h:1.55	Fri Oct 13 15:40:42 2006
+++ llvm/lib/Target/X86/X86InstrInfo.h	Tue Oct 17 17:41:45 2006
@@ -205,6 +205,11 @@
   unsigned isLoadFromStackSlot(MachineInstr *MI, int &FrameIndex) const;
   unsigned isStoreToStackSlot(MachineInstr *MI, int &FrameIndex) 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;
+  
   /// convertToThreeAddress - This method must be implemented by targets that
   /// set the M_CONVERTIBLE_TO_3_ADDR flag.  When this flag is set, the target
   /// may be able to convert a two-address instruction into a true






More information about the llvm-commits mailing list