diff options
author | Dan Gohman <gohman@apple.com> | 2008-11-13 23:45:55 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-11-13 23:45:55 +0000 |
commit | c3c129fd8b74909cad75d88223e9b5b4dc16df20 (patch) | |
tree | 0f11f1a1f2e0db17477a6bc2e3e8b07b2a7a08b6 /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | |
parent | ae78a88e12fa3d5f0cdb723cf009dfd71eb35a70 (diff) | |
download | external_llvm-c3c129fd8b74909cad75d88223e9b5b4dc16df20.zip external_llvm-c3c129fd8b74909cad75d88223e9b5b4dc16df20.tar.gz external_llvm-c3c129fd8b74909cad75d88223e9b5b4dc16df20.tar.bz2 |
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index a356b6d..2774633 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -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() { |