Use the getFunctionNames method

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7008 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-06-30 05:57:39 +00:00
parent a9d6566e36
commit 6681e98b13

View File

@ -68,14 +68,9 @@ template<>
struct DOTGraphTraits<const DSGraph*> : public DefaultDOTGraphTraits {
static std::string getGraphName(const DSGraph *G) {
switch (G->getReturnNodes().size()) {
case 0: return "Global graph";
case 1: return "Function " + G->getReturnNodes().begin()->first->getName();
default:
std::string Return = "Functions: ";
for (DSGraph::ReturnNodesTy::const_iterator I=G->getReturnNodes().begin();
I != G->getReturnNodes().end(); ++I)
Return += I->first->getName() + " ";
return Return;
case 0: return G->getFunctionNames();
case 1: return "Function " + G->getFunctionNames();
default: return "Functions: " + G->getFunctionNames();
}
}