llvm.org GIT mirror llvm / 6681e98
Use the getFunctionNames method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7008 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
1 changed file(s) with 3 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
6767 struct DOTGraphTraits : public DefaultDOTGraphTraits {
6868 static std::string getGraphName(const DSGraph *G) {
6969 switch (G->getReturnNodes().size()) {
70 case 0: return "Global graph";
71 case 1: return "Function " + G->getReturnNodes().begin()->first->getName();
72 default:
73 std::string Return = "Functions: ";
74 for (DSGraph::ReturnNodesTy::const_iterator I=G->getReturnNodes().begin();
75 I != G->getReturnNodes().end(); ++I)
76 Return += I->first->getName() + " ";
77 return Return;
70 case 0: return G->getFunctionNames();
71 case 1: return "Function " + G->getFunctionNames();
72 default: return "Functions: " + G->getFunctionNames();
7873 }
7974 }
8075