mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-22 11:55:12 +00:00
Changed printValue() to print constant value if the value is a constant.
llvm-svn: 292
This commit is contained in:
parent
12710ee1b2
commit
f75118336e
@ -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 << " ";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user