Output to cerr rather than cout so that debug info doesn't mess up assembly generation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@840 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/SparcV9/SparcV9TargetMachine.cpp b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
index e8835ae..9de9bc9 100644
--- a/lib/Target/SparcV9/SparcV9TargetMachine.cpp
+++ b/lib/Target/SparcV9/SparcV9TargetMachine.cpp
@@ -47,8 +47,8 @@
return;
if( DEBUG_RA ) {
- cout << endl << "******************** Method "<< (M)->getName();
- cout << " ********************" <<endl;
+ cerr << endl << "******************** Method "<< (M)->getName();
+ cerr << " ********************" <<endl;
}
MethodLiveVarInfo LVI(M ); // Analyze live varaibles
@@ -59,7 +59,7 @@
PRA.allocateRegisters();
- if( DEBUG_RA ) cout << endl << "Register allocation complete!" << endl;
+ if( DEBUG_RA ) cerr << endl << "Register allocation complete!" << endl;
}