Added a temporary hack to get the llvm-streams to work for future checkins.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31978 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling
2006-11-28 22:21:29 +00:00
parent d4d9ab80b7
commit b5ebf15b2b
14 changed files with 114 additions and 7 deletions

View File

@@ -18,6 +18,7 @@
#include "llvm/ADT/iterator"
#include "llvm/Support/DataTypes.h"
#include "llvm/Support/Streams.h"
#include <vector>
#include <cassert>
#include <iosfwd>
@@ -284,6 +285,10 @@ public:
IsDead = false;
}
friend llvm_ostream& operator<<(llvm_ostream& os, const MachineOperand& mop) {
if (os.stream()) *os.stream() << mop;
return os;
}
friend std::ostream& operator<<(std::ostream& os, const MachineOperand& mop);
friend class MachineInstr;
@@ -400,8 +405,15 @@ public:
//
// Debugging support
//
void print(llvm_ostream &OS, const TargetMachine *TM) const {
if (OS.stream()) print(*OS.stream(), TM);
}
void print(std::ostream &OS, const TargetMachine *TM) const;
void dump() const;
friend llvm_ostream& operator<<(llvm_ostream& os, const MachineInstr& minstr){
if (os.stream()) *os.stream() << minstr;
return os;
}
friend std::ostream& operator<<(std::ostream& os, const MachineInstr& minstr);
//===--------------------------------------------------------------------===//