mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-08 13:26:19 +00:00
Fix printing of PseudoSourceValues in SDNode graphs.
llvm-svn: 61036
This commit is contained in:
parent
d55f68eef2
commit
f3c46b3496
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user