X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FVirtRegMap.cpp;h=7ee4eeb6981d2cd91f8f5b9b7c8dbf024b8f8c0e;hb=61466c50df9d00c4a07b1fd72536399cfb418ebd;hp=4d3417fdff514d8ba95d8f58ae8d7ed8684ddef5;hpb=358dec51804ee52e47ea3a47c9248086e458ad7c;p=oota-llvm.git diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index 4d3417fdff5..7ee4eeb6981 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/lib/CodeGen/VirtRegMap.cpp @@ -30,6 +30,7 @@ #include "llvm/Support/CommandLine.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/raw_ostream.h" #include "llvm/ADT/BitVector.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/DepthFirstIterator.h" @@ -259,6 +260,11 @@ bool VirtRegMap::FindUnusedRegisters(LiveIntervals* LIs) { } void VirtRegMap::print(std::ostream &OS, const Module* M) const { + raw_os_ostream RawOS(OS); + print(RawOS, M); +} + +void VirtRegMap::print(raw_ostream &OS, const Module* M) const { const TargetRegisterInfo* TRI = MF->getTarget().getRegisterInfo(); OS << "********** REGISTER MAP **********\n";