Print PseudoSourceValue.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55291 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2008-08-24 18:51:20 +00:00
parent 4238746230
commit 40ab164d3a
3 changed files with 21 additions and 2 deletions

View File

@@ -756,8 +756,8 @@ void MachineInstr::print(std::ostream &OS, const TargetMachine *TM) const {
OS << "<unknown>";
else if (!V->getName().empty())
OS << V->getName();
else if (isa<PseudoSourceValue>(V))
OS << *V;
else if (const PseudoSourceValue *PSV = dyn_cast<PseudoSourceValue>(V))
OS << *PSV;
else
OS << V;