diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-24 10:36:58 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-24 10:36:58 +0000 |
commit | 796e43eede5d1af588c327051f28cc6e7bf78353 (patch) | |
tree | 5a2979107c9b50c719ea684ad1a79dbc8fea187e /llvm/lib/CodeGen/VirtRegMap.cpp | |
parent | b99eac88144da4c79a03ef90cac78336bc90228f (diff) | |
download | bcm5719-llvm-796e43eede5d1af588c327051f28cc6e7bf78353.tar.gz bcm5719-llvm-796e43eede5d1af588c327051f28cc6e7bf78353.zip |
Move more to raw_ostream, provide support for writing MachineBasicBlock,
LiveInterval, etc to raw_ostream.
llvm-svn: 76965
Diffstat (limited to 'llvm/lib/CodeGen/VirtRegMap.cpp')
-rw-r--r-- | llvm/lib/CodeGen/VirtRegMap.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp index 4d3417fdff5..7ee4eeb6981 100644 --- a/llvm/lib/CodeGen/VirtRegMap.cpp +++ b/llvm/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"; |