aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/LiveVar/ValueSet.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-15 18:30:06 +0000
committerChris Lattner <sabre@nondot.org>2001-10-15 18:30:06 +0000
commit634b352fa6ccb7313520dcf552359569bf1b7f47 (patch)
tree58b2bb6fe29a162891a2c3d3093bc1ed49919c74 /lib/Analysis/LiveVar/ValueSet.cpp
parent1e23ed7c653bb73984766cd3868da4d372ac47f8 (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.cpp8
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 << " ";
}