summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2006-12-15 22:57:14 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2006-12-15 22:57:14 +0000
commitb82309f1abe493d4870714d17d9d844e1bf48a00 (patch)
tree82f33198e817e6e1a9726ace8ba8acbf071a6528 /llvm/lib/CodeGen/MachineInstr.cpp
parent884bc09d10d2df36aa5ff22ca847a2f5586e0f62 (diff)
downloadbcm5719-llvm-b82309f1abe493d4870714d17d9d844e1bf48a00.tar.gz
bcm5719-llvm-b82309f1abe493d4870714d17d9d844e1bf48a00.zip
An even better unbreakage...
llvm-svn: 32617
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 716b40fbf1c..a68442511b4 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -18,6 +18,7 @@
#include "llvm/Target/MRegisterInfo.h"
#include "llvm/Support/LeakDetector.h"
#include "llvm/Support/Streams.h"
+#include <ostream>
using namespace llvm;
/// MachineInstr ctor - This constructor creates a dummy MachineInstr with
@@ -363,3 +364,14 @@ std::ostream &llvm::operator<<(std::ostream &OS, const MachineOperand &MO) {
return OS;
}
+
+OStream& llvm::operator<<(OStream& os, const MachineInstr& minstr) {
+ if (os.stream()) *os.stream() << minstr;
+ return os;
+}
+
+OStream& llvm::operator<<(OStream& os, const MachineOperand& mop) {
+ if (os.stream()) *os.stream() << mop;
+ return os;
+}
+
OpenPOWER on IntegriCloud