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 /lib/CodeGen/LiveInterval.cpp | |
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 'lib/CodeGen/LiveInterval.cpp')
-rw-r--r-- | lib/CodeGen/LiveInterval.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/LiveInterval.cpp b/lib/CodeGen/LiveInterval.cpp index e2a3bbaaf0..78c874cbb9 100644 --- a/lib/CodeGen/LiveInterval.cpp +++ b/lib/CodeGen/LiveInterval.cpp @@ -24,6 +24,7 @@ #include "llvm/Target/MRegisterInfo.h" #include <algorithm> #include <map> +#include <ostream> using namespace llvm; // An example for liveAt(): @@ -509,3 +510,9 @@ void LiveInterval::print(OStream OS, const MRegisterInfo *MRI) const { void LiveInterval::dump() const { cerr << *this << "\n"; } + + +OStream& llvm::operator<<(OStream& os, const LiveRange &LR) { + if (os.stream()) *os.stream() << LR; + return os; +} |