[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineBasicBlock.h

Brian Gaeke gaeke at cs.uiuc.edu
Thu Feb 12 22:41:34 PST 2004


Changes in directory llvm/include/llvm/CodeGen:

MachineBasicBlock.h updated: 1.16 -> 1.17

---
Log message:

Include <iosfwd>.
Add prototypes for MachineBasicBlock's dump() and print() methods.


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

Index: llvm/include/llvm/CodeGen/MachineBasicBlock.h
diff -u llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.16 llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.17
--- llvm/include/llvm/CodeGen/MachineBasicBlock.h:1.16	Thu Feb 12 13:12:03 2004
+++ llvm/include/llvm/CodeGen/MachineBasicBlock.h	Thu Feb 12 22:40:15 2004
@@ -16,6 +16,7 @@
 
 #include "llvm/CodeGen/MachineInstr.h"
 #include "Support/ilist"
+#include <iosfwd>
 
 namespace llvm {
 
@@ -126,6 +127,10 @@
   iterator erase(iterator I)             { return Insts.erase(I); }
   iterator erase(iterator I, iterator E) { return Insts.erase(I, E); }
   MachineInstr* remove(iterator &I)      { return Insts.remove(I); }
+
+  // Debugging methods.
+  void dump() const;
+  void print(std::ostream &OS) const;
 
 private:   // Methods used to maintain doubly linked list of blocks...
   friend class ilist_traits<MachineBasicBlock>;





More information about the llvm-commits mailing list