From: Dan Gohman Date: Thu, 13 Nov 2008 23:45:55 +0000 (+0000) Subject: Change DOTGraphTraits::getGraphName how to find the name of X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c3c129fd8b74909cad75d88223e9b5b4dc16df20;p=oota-llvm.git Change DOTGraphTraits::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 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index a356b6d471c..27746333e44 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -387,7 +387,7 @@ namespace llvm { template<> struct DOTGraphTraits : public DefaultDOTGraphTraits { static std::string getGraphName(const ScheduleDAG *G) { - return DOTGraphTraits::getGraphName(G->DAG); + return G->MF->getFunction()->getName(); } static bool renderGraphFromBottomUp() {