diff --git a/lib/Analysis/LiveVar/ValueSet.cpp b/lib/Analysis/LiveVar/ValueSet.cpp index d86587cde4c..680ad83428e 100644 --- a/lib/Analysis/LiveVar/ValueSet.cpp +++ b/lib/Analysis/LiveVar/ValueSet.cpp @@ -1,11 +1,14 @@ #include "llvm/Analysis/LiveVar/ValueSet.h" +#include "llvm/ConstPoolVals.h" void printValue( const Value *const v) // func to print a Value { if( (*v).hasName() ) cout << v << "(" << ((*v).getName()) << ") "; //if( (*v).hasName() ) cout << ((*v).getName()) << " "; + else if (v->getValueType() == Value::ConstantVal) // if const + cout << v << "(" << ((ConstPoolVal *) v)->getStrValue() << ") "; else cout << v << " "; }