diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-02-24 04:24:44 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-02-24 04:24:44 +0000 |
| commit | 3ea9066bb4042ee7e7610ebf544e96a03ac7f95b (patch) | |
| tree | dff9496b89f554f27443e3ad923432551d65bfdd | |
| parent | d5c472d811e6c8da22a8b959f3832b81637bc160 (diff) | |
| download | bcm5719-llvm-3ea9066bb4042ee7e7610ebf544e96a03ac7f95b.tar.gz bcm5719-llvm-3ea9066bb4042ee7e7610ebf544e96a03ac7f95b.zip | |
add node #'s to debug dumps.
llvm-svn: 97019
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index f5e7000167e..f8930b8ff0c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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: |

