diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-23 03:47:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-23 03:47:42 +0000 |
commit | d99f1c6fa26908a75e6d88569f7fcabb67e94ca6 (patch) | |
tree | 58091876467c88b4d7bfb169ce74dc058021afc7 /llvm/lib/CodeGen/LiveStackAnalysis.cpp | |
parent | a6f074fb3a205b0118aaa2ff282c771aa42e7f18 (diff) | |
download | llvm-d99f1c6fa26908a75e6d88569f7fcabb67e94ca6.zip llvm-d99f1c6fa26908a75e6d88569f7fcabb67e94ca6.tar.gz llvm-d99f1c6fa26908a75e6d88569f7fcabb67e94ca6.tar.bz2 |
shoot a few more std::ostream print methods in the head.
llvm-svn: 79814
Diffstat (limited to 'llvm/lib/CodeGen/LiveStackAnalysis.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveStackAnalysis.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LiveStackAnalysis.cpp b/llvm/lib/CodeGen/LiveStackAnalysis.cpp index 86f7ea2..c89b708 100644 --- a/llvm/lib/CodeGen/LiveStackAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveStackAnalysis.cpp @@ -19,6 +19,7 @@ #include "llvm/CodeGen/Passes.h" #include "llvm/Target/TargetRegisterInfo.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/raw_ostream.h" #include "llvm/ADT/Statistic.h" #include <limits> using namespace llvm; @@ -53,14 +54,16 @@ bool LiveStacks::runOnMachineFunction(MachineFunction &) { /// print - Implement the dump method. void LiveStacks::print(std::ostream &O, const Module*) const { - O << "********** INTERVALS **********\n"; + raw_os_ostream OS(O); + + OS << "********** INTERVALS **********\n"; for (const_iterator I = begin(), E = end(); I != E; ++I) { - I->second.print(O); + I->second.print(OS); int Slot = I->first; const TargetRegisterClass *RC = getIntervalRegClass(Slot); if (RC) - O << " [" << RC->getName() << "]\n"; + OS << " [" << RC->getName() << "]\n"; else - O << " [Unknown]\n"; + OS << " [Unknown]\n"; } } |