summaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-10-22 03:25:22 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-10-22 03:25:22 +0000
commit3b0da26e202cbbeb22508231f4278bda8e995391 (patch)
tree07722427aee47227292daf03427c9d0f1b749281 /lib/CodeGen/LLVMTargetMachine.cpp
parent1dc9716121ed3da5ffae3eb25031469620f275e8 (diff)
downloadexternal_llvm-3b0da26e202cbbeb22508231f4278bda8e995391.zip
external_llvm-3b0da26e202cbbeb22508231f4278bda8e995391.tar.gz
external_llvm-3b0da26e202cbbeb22508231f4278bda8e995391.tar.bz2
Move Print*Pass to use raw_ostream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index bc3c991..fa386b0 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/lib/CodeGen/LLVMTargetMachine.cpp
@@ -151,7 +151,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, bool Fast) {
if (!Fast) {
PM.add(createLoopStrengthReducePass(getTargetLowering()));
if (PrintLSR)
- PM.add(createPrintFunctionPass("\n\n*** Code after LSR ***\n", &cerr));
+ PM.add(createPrintFunctionPass("\n\n*** Code after LSR ***\n", &errs()));
}
PM.add(createGCLoweringPass());
@@ -168,7 +168,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, bool Fast) {
if (PrintISelInput)
PM.add(createPrintFunctionPass("\n\n"
"*** Final LLVM Code input to ISel ***\n",
- &cerr));
+ &errs()));
// Standard Lower-Level Passes.