diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-18 21:47:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-18 21:47:36 +0000 |
commit | 1ccc4684f3413d1f176a2c7a867545ce03b6414c (patch) | |
tree | d649d7d4c5bcff16cd9530da8bb7ad08487dfbde /lib/CodeGen/MachineBasicBlock.cpp | |
parent | 154e1047184384afd0a701a9f8816459cf0b3490 (diff) |
Implement operator<< for machine basic blocks to make it easier to dump them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | lib/CodeGen/MachineBasicBlock.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp index fcc01299cd..201b79e130 100644 --- a/lib/CodeGen/MachineBasicBlock.cpp +++ b/lib/CodeGen/MachineBasicBlock.cpp @@ -27,6 +27,10 @@ MachineBasicBlock::~MachineBasicBlock() { 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 |