1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Change DOTGraphTraits<ScheduleDAG*>::getGraphName how to find the name of

the current function on its own, rather than relying on the SelectionDAG.

llvm-svn: 59277
This commit is contained in:
Dan Gohman 2008-11-13 23:45:55 +00:00
parent 24b2c89cdf
commit 2e0edf0617

View File

@ -387,7 +387,7 @@ namespace llvm {
template<>
struct DOTGraphTraits<ScheduleDAG*> : public DefaultDOTGraphTraits {
static std::string getGraphName(const ScheduleDAG *G) {
return DOTGraphTraits<SelectionDAG*>::getGraphName(G->DAG);
return G->MF->getFunction()->getName();
}
static bool renderGraphFromBottomUp() {