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 | 464fc5a04462ad09f98f456e8904683e7c34f60e (patch) | |
tree | 2395e374ee5aebaab43702aad82caba13c0d0b18 /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | |
parent | 2b00aebda9705b7d76e90e632a5de511e59c739d (diff) |
Fix printing of PseudoSourceValues in SDNode graphs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 03b78c33ef..a528c80dda 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/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(); } |