Change DOTGraphTraits<ScheduleDAG*>::getGraphName how to find the name of
authorDan Gohman <gohman@apple.com>
Thu, 13 Nov 2008 23:45:55 +0000 (23:45 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 13 Nov 2008 23:45:55 +0000 (23:45 +0000)
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

lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp

index a356b6d471caf2d3227ef70c65d1f4b1906daab7..27746333e448dbef12cf6a576f51b8d74a06346b 100644 (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() {