diff options
author | Dan Gohman <gohman@apple.com> | 2008-12-15 17:28:10 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-12-15 17:28:10 +0000 |
commit | a7e139a3e6fdca21c2e85eaa5d3bddc7d51977cb (patch) | |
tree | 5984ede53a04f464508eaa892e72be039f9af546 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | |
parent | 498d3912454951ed9a83d8102adaa3fac6b2635c (diff) | |
download | bcm5719-llvm-a7e139a3e6fdca21c2e85eaa5d3bddc7d51977cb.tar.gz bcm5719-llvm-a7e139a3e6fdca21c2e85eaa5d3bddc7d51977cb.zip |
Fix printing of PseudoSourceValues in SDNode graphs.
llvm-svn: 61036
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 03b78c33efb..a528c80ddae 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -202,12 +202,10 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node, Op += '<'; if (!V) { Op += "(unknown)"; - } else if (isa<PseudoSourceValue>(V)) { + } else if (const PseudoSourceValue *PSV = dyn_cast<PseudoSourceValue>(V)) { // PseudoSourceValues don't have names, so use their print method. - { - raw_string_ostream OSS(Op); - OSS << *M->MO.getValue(); - } + raw_string_ostream OSS(Op); + PSV->print(OSS); } else { Op += V->getName(); } |