diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-15 18:30:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-15 18:30:06 +0000 |
commit | 634b352fa6ccb7313520dcf552359569bf1b7f47 (patch) | |
tree | 58b2bb6fe29a162891a2c3d3093bc1ed49919c74 /lib/Analysis/LiveVar/ValueSet.cpp | |
parent | 1e23ed7c653bb73984766cd3868da4d372ac47f8 (diff) |
Print Debug Code to stderr instead of stdout so that it doesn't mess up the assembly output
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@841 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LiveVar/ValueSet.cpp')
-rw-r--r-- | lib/Analysis/LiveVar/ValueSet.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/LiveVar/ValueSet.cpp b/lib/Analysis/LiveVar/ValueSet.cpp index 8cfe6fb289..c93bc2028c 100644 --- a/lib/Analysis/LiveVar/ValueSet.cpp +++ b/lib/Analysis/LiveVar/ValueSet.cpp @@ -6,12 +6,12 @@ void printValue( const Value *const v) // func to print a Value { - if( (*v).hasName() ) - cout << v << "(" << ((*v).getName()) << ") "; + if (v->hasName()) + cerr << v << "(" << ((*v).getName()) << ") "; else if (v->getValueType() == Value::ConstantVal) // if const - cout << v << "(" << ((ConstPoolVal *) v)->getStrValue() << ") "; + cerr << v << "(" << ((ConstPoolVal *) v)->getStrValue() << ") "; else - cout << v << " "; + cerr << v << " "; } |