mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
add node #'s to debug dumps.
llvm-svn: 97019
This commit is contained in:
parent
c31a44dd8b
commit
b1b5df8a16
@ -5484,15 +5484,15 @@ std::string SDNode::getOperationName(const SelectionDAG *G) const {
|
||||
if (const TargetInstrInfo *TII = G->getTarget().getInstrInfo())
|
||||
if (getMachineOpcode() < TII->getNumOpcodes())
|
||||
return TII->get(getMachineOpcode()).getName();
|
||||
return "<<Unknown Machine Node>>";
|
||||
return "<<Unknown Machine Node #" + utostr(getOpcode()) + ">>";
|
||||
}
|
||||
if (G) {
|
||||
const TargetLowering &TLI = G->getTargetLoweringInfo();
|
||||
const char *Name = TLI.getTargetNodeName(getOpcode());
|
||||
if (Name) return Name;
|
||||
return "<<Unknown Target Node>>";
|
||||
return "<<Unknown Target Node #" + utostr(getOpcode()) + ">>";
|
||||
}
|
||||
return "<<Unknown Node>>";
|
||||
return "<<Unknown Node #" + utostr(getOpcode()) + ">>";
|
||||
|
||||
#ifndef NDEBUG
|
||||
case ISD::DELETED_NODE:
|
||||
|
Loading…
Reference in New Issue
Block a user