mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Fix printing of PseudoSourceValues in SDNode graphs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61036 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -202,12 +202,10 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
|
|||||||
Op += '<';
|
Op += '<';
|
||||||
if (!V) {
|
if (!V) {
|
||||||
Op += "(unknown)";
|
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.
|
// PseudoSourceValues don't have names, so use their print method.
|
||||||
{
|
raw_string_ostream OSS(Op);
|
||||||
raw_string_ostream OSS(Op);
|
PSV->print(OSS);
|
||||||
OSS << *M->MO.getValue();
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
Op += V->getName();
|
Op += V->getName();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user