mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 15:39:06 +00:00
Just use << isntead of forcing getStrValue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2294 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
595d2f670a
commit
6228106e9f
@ -10,7 +10,7 @@ std::ostream &operator<<(std::ostream &O, RAV V) { // func to print a Value
|
||||
if (v->hasName())
|
||||
return O << v << "(" << v->getName() << ") ";
|
||||
else if (Constant *C = dyn_cast<Constant>(v))
|
||||
return O << v << "(" << C->getStrValue() << ") ";
|
||||
return O << v << "(" << C << ") ";
|
||||
else
|
||||
return O << v << " ";
|
||||
}
|
||||
|
@ -10,7 +10,7 @@ std::ostream &operator<<(std::ostream &O, RAV V) { // func to print a Value
|
||||
if (v->hasName())
|
||||
return O << v << "(" << v->getName() << ") ";
|
||||
else if (Constant *C = dyn_cast<Constant>(v))
|
||||
return O << v << "(" << C->getStrValue() << ") ";
|
||||
return O << v << "(" << C << ") ";
|
||||
else
|
||||
return O << v << " ";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user