projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b00aeb
)
Fix printing of PseudoSourceValues in SDNode graphs.
author
Dan Gohman
<gohman@apple.com>
Mon, 15 Dec 2008 17:28:10 +0000
(17:28 +0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 15 Dec 2008 17:28:10 +0000
(17:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61036
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index 03b78c33efb4c25988ad9440626cb21ee0bf68cd..a528c80ddaead264a8aefe615b074eebecf0948f 100644
(file)
--- 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();
}