#include "llvm/Support/Streams.h"
#include "llvm/Target/MRegisterInfo.h"
#include <algorithm>
-#include <iostream>
#include <map>
+#include <ostream>
using namespace llvm;
// An example for liveAt():
}
void LiveRange::dump() const {
- llvm_cerr << *this << "\n";
+ cerr << *this << "\n";
}
-void LiveInterval::print(llvm_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
}
void LiveInterval::dump() const {
- llvm_cerr << *this << "\n";
+ cerr << *this << "\n";
+}
+
+
+void LiveRange::print(std::ostream &os) const {
+ os << *this;
}