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 | c21c5eeb4f56f160e79522df2d3aab5cfe73c05d (patch) | |
tree | b349cac9dfc28354762c66ad227c0ae9e496748a /include/llvm/CodeGen | |
parent | 19103b11ecbd5153537a1c64ffefa922fe591add (diff) |
An even better unbreakage...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/LiveInterval.h | 6 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineBasicBlock.h | 5 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 11 |
3 files changed, 4 insertions, 18 deletions
diff --git a/include/llvm/CodeGen/LiveInterval.h b/include/llvm/CodeGen/LiveInterval.h index 8181a2093d..a64af87d91 100644 --- a/include/llvm/CodeGen/LiveInterval.h +++ b/include/llvm/CodeGen/LiveInterval.h @@ -26,7 +26,6 @@ #include <iosfwd> #include <vector> #include <cassert> -#include <ostream> namespace llvm { class MRegisterInfo; @@ -63,10 +62,7 @@ namespace llvm { }; std::ostream& operator<<(std::ostream& os, const LiveRange &LR); - inline OStream& operator<<(OStream& os, const LiveRange &LR) { - if (os.stream()) *os.stream() << LR; - return os; - } + OStream& operator<<(OStream& os, const LiveRange &LR); inline bool operator<(unsigned V, const LiveRange &LR) { return V < LR.start; diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index c848b065b4..4cf6a24e45 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -226,10 +226,7 @@ private: // Methods used to maintain doubly linked list of blocks... }; std::ostream& operator<<(std::ostream &OS, const MachineBasicBlock &MBB); -inline OStream& operator<<(OStream &OS, const MachineBasicBlock &MBB){ - if (OS.stream()) *OS.stream() << MBB; - return OS; -} +OStream& operator<<(OStream &OS, const MachineBasicBlock &MBB); //===--------------------------------------------------------------------===// // GraphTraits specializations for machine basic block graphs (machine-CFGs) diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 181a6414a6..e19a3ebfbe 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -22,7 +22,6 @@ #include <vector> #include <cassert> #include <iosfwd> -#include <ostream> namespace llvm { @@ -286,10 +285,7 @@ public: IsDead = false; } - friend OStream& operator<<(OStream& os, const MachineOperand& mop) { - if (os.stream()) *os.stream() << mop; - return os; - } + friend OStream& operator<<(OStream& os, const MachineOperand& mop); friend std::ostream& operator<<(std::ostream& os, const MachineOperand& mop); friend class MachineInstr; @@ -403,10 +399,7 @@ public: } void print(std::ostream &OS, const TargetMachine *TM) const; void dump() const; - friend OStream& operator<<(OStream& os, const MachineInstr& minstr){ - if (os.stream()) *os.stream() << minstr; - return os; - } + friend OStream& operator<<(OStream& os, const MachineInstr& minstr); friend std::ostream& operator<<(std::ostream& os, const MachineInstr& minstr); //===--------------------------------------------------------------------===// |