X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FCodeGen%2FSelectionDAG%2FSelectionDAGPrinter.cpp;h=f1883744129467d77364227e9182d91ad4f6b175;hb=49c18cce976c158e86f54c681dff21bb81640fb8;hp=f2cd3c1b7a1866847aec593dcc36bf9258f5c0af;hpb=f5aeb1a8e4cf272c7348376d185ef8d8267653e0;p=oota-llvm.git diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index f2cd3c1b7a1..f1883744129 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -126,12 +126,13 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, Op += ": " + ftostr(CSDN->getValueAPF()); } else if (const GlobalAddressSDNode *GADN = dyn_cast(Node)) { - int offset = GADN->getOffset(); Op += ": " + GADN->getGlobal()->getName(); - if (offset > 0) - Op += "+" + itostr(offset); - else - Op += itostr(offset); + if (int64_t Offset = GADN->getOffset()) { + if (Offset > 0) + Op += "+" + itostr(Offset); + else + Op += itostr(Offset); + } } else if (const FrameIndexSDNode *FIDN = dyn_cast(Node)) { Op += " " + itostr(FIDN->getIndex()); } else if (const JumpTableSDNode *JTDN = dyn_cast(Node)) { @@ -158,6 +159,7 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, Op += '>'; } } + Op += " A=" + itostr(1 << CP->getAlignment()); } else if (const BasicBlockSDNode *BBDN = dyn_cast(Node)) { Op = "BB: "; const Value *LBB = (const Value*)BBDN->getBasicBlock()->getBasicBlock(); @@ -179,6 +181,12 @@ std::string DOTGraphTraits::getNodeLabel(const SDNode *Node, Op += ":" + utostr(D->getColumn()); } else if (const LabelSDNode *L = dyn_cast(Node)) { Op += ": LabelID=" + utostr(L->getLabelID()); + } else if (const CallSDNode *C = dyn_cast(Node)) { + Op += ": CallingConv=" + utostr(C->getCallingConv()); + if (C->isVarArg()) + Op += ", isVarArg"; + if (C->isTailCall()) + Op += ", isTailCall"; } else if (const ExternalSymbolSDNode *ES = dyn_cast(Node)) { Op += "'" + std::string(ES->getSymbol()) + "'";