mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 18:06:49 +00:00
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:
parent
a9d6566e36
commit
6681e98b13
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user