Tighten up error checking of args.
[oota-llvm.git] / lib / CodeGen / LiveInterval.cpp
index e2a3bbaaf0bf69b7ab794f6b22f451ce5e7b5aac..0ca16007b2d4b6e20eb188cb8c4d0710c8483272 100644 (file)
@@ -24,6 +24,7 @@
 #include "llvm/Target/MRegisterInfo.h"
 #include <algorithm>
 #include <map>
+#include <ostream>
 using namespace llvm;
 
 // An example for liveAt():
@@ -474,7 +475,7 @@ void LiveRange::dump() const {
   cerr << *this << "\n";
 }
 
-void LiveInterval::print(OStream OS, const MRegisterInfo *MRI) const {
+void LiveInterval::print(std::ostream &OS, const MRegisterInfo *MRI) const {
   if (MRI && MRegisterInfo::isPhysicalRegister(reg))
     OS << MRI->getName(reg);
   else
@@ -509,3 +510,8 @@ void LiveInterval::print(OStream OS, const MRegisterInfo *MRI) const {
 void LiveInterval::dump() const {
   cerr << *this << "\n";
 }
+
+
+void LiveRange::print(std::ostream &os) const {
+  os << *this;
+}