summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-11-13 23:45:55 +0000
committerDan Gohman <gohman@apple.com>2008-11-13 23:45:55 +0000
commita2cbbaa41f996f0a687b1436e42220fcd749cb89 (patch)
tree0846332ecec5f7bec0a2cb31bd8d2b3c380567a1 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
parent059dc8d32a3bd6461d40d48c47bea61f3b156e05 (diff)
downloadbcm5719-llvm-a2cbbaa41f996f0a687b1436e42220fcd749cb89.tar.gz
bcm5719-llvm-a2cbbaa41f996f0a687b1436e42220fcd749cb89.zip
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
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index a356b6d471c..27746333e44 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/llvm/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() {
OpenPOWER on IntegriCloud