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

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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59277 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-11-13 23:45:55 +00:00
parent ae78a88e12
commit c3c129fd8b

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() {