diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 5a7b3fd75dc..f3ac22ea88d 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -138,10 +138,15 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, else Op += itostr(Offset); } + if (unsigned char TF = GADN->getTargetFlags()) + Op += " [TF=" + utostr(TF) + "]"; + } else if (const FrameIndexSDNode *FIDN = dyn_cast(Node)) { Op += " " + itostr(FIDN->getIndex()); } else if (const JumpTableSDNode *JTDN = dyn_cast(Node)) { Op += " " + itostr(JTDN->getIndex()); + if (unsigned char TF = JTDN->getTargetFlags()) + Op += " [TF=" + utostr(TF) + "]"; } else if (const ConstantPoolSDNode *CP = dyn_cast(Node)){ if (CP->isMachineConstantPoolEntry()) { Op += '<'; @@ -165,6 +170,8 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, } } Op += " A=" + itostr(CP->getAlignment()); + if (unsigned char TF = CP->getTargetFlags()) + Op += " TF=" + utostr(TF); } else if (const BasicBlockSDNode *BBDN = dyn_cast(Node)) { Op = "BB: "; const Value *LBB = (const Value*)BBDN->getBasicBlock()->getBasicBlock();