diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2006-12-15 22:57:14 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2006-12-15 22:57:14 +0000 |
commit | b82309f1abe493d4870714d17d9d844e1bf48a00 (patch) | |
tree | 82f33198e817e6e1a9726ace8ba8acbf071a6528 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 884bc09d10d2df36aa5ff22ca847a2f5586e0f62 (diff) | |
download | bcm5719-llvm-b82309f1abe493d4870714d17d9d844e1bf48a00.tar.gz bcm5719-llvm-b82309f1abe493d4870714d17d9d844e1bf48a00.zip |
An even better unbreakage...
llvm-svn: 32617
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index a626f4fdd15..39b142a2f35 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -31,6 +31,11 @@ std::ostream& llvm::operator<<(std::ostream &OS, const MachineBasicBlock &MBB) { return OS; } +OStream& llvm::operator<<(OStream &OS, const MachineBasicBlock &MBB) { + if (OS.stream()) *OS.stream() << MBB; + 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 // MachineFunction, it goes back to being #-1. |