Changes in directory llvm/lib/CodeGen:
MachineBasicBlock.cpp updated: 1.33 -> 1.34 --- Log message: Implement operator<< for machine basic blocks to make it easier to dump them. --- Diffs of the changes: (+4 -0) MachineBasicBlock.cpp | 4 ++++ 1 files changed, 4 insertions(+) Index: llvm/lib/CodeGen/MachineBasicBlock.cpp diff -u llvm/lib/CodeGen/MachineBasicBlock.cpp:1.33 llvm/lib/CodeGen/MachineBasicBlock.cpp:1.34 --- llvm/lib/CodeGen/MachineBasicBlock.cpp:1.33 Mon Oct 23 19:02:26 2006 +++ llvm/lib/CodeGen/MachineBasicBlock.cpp Sat Nov 18 15:47:36 2006 @@ -27,6 +27,10 @@ LeakDetector::removeGarbageObject(this); } +std::ostream& llvm::operator<<(std::ostream &OS, const MachineBasicBlock &MBB) { + MBB.print(OS); + return OS; +} // MBBs start out as #-1. When a MBB is added to a MachineFunction, it // gets the next available unique MBB number. If it is removed from a _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits