summaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveStackAnalysis.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-23 03:47:42 +0000
committerChris Lattner <sabre@nondot.org>2009-08-23 03:47:42 +0000
commitc02497f5bae87e71fd5617db5751cb0b3a14bbed (patch)
tree7f326f17e9252d7ee004cd74dbb329b5c82d21f9 /lib/CodeGen/LiveStackAnalysis.cpp
parent705e07f578e2b3af47ddab610feb4e7f2d3063a5 (diff)
downloadllvm-c02497f5bae87e71fd5617db5751cb0b3a14bbed.tar.gz
llvm-c02497f5bae87e71fd5617db5751cb0b3a14bbed.tar.bz2
llvm-c02497f5bae87e71fd5617db5751cb0b3a14bbed.tar.xz
shoot a few more std::ostream print methods in the head.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveStackAnalysis.cpp')
-rw-r--r--lib/CodeGen/LiveStackAnalysis.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/CodeGen/LiveStackAnalysis.cpp b/lib/CodeGen/LiveStackAnalysis.cpp
index 86f7ea20c9..c89b70893f 100644
--- a/lib/CodeGen/LiveStackAnalysis.cpp
+++ b/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";
}
}