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:
Chris Lattner 2002-04-18 18:14:40 +00:00
parent 595d2f670a
commit 6228106e9f
2 changed files with 2 additions and 2 deletions

View File

@ -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 << " ";
}

View File

@ -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 << " ";
}