aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-24 08:24:36 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-24 08:24:36 +0000
commitf6ccee5a9d2b9573f679bca6266ade3eb8cd3f88 (patch)
treeb29880f9afc9d9710cc5c28c341eb667a6ebd246 /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
parent82a29b6a02324e65847ed99bae84dafb2755ea32 (diff)
downloadexternal_llvm-f6ccee5a9d2b9573f679bca6266ade3eb8cd3f88.zip
external_llvm-f6ccee5a9d2b9573f679bca6266ade3eb8cd3f88.tar.gz
external_llvm-f6ccee5a9d2b9573f679bca6266ade3eb8cd3f88.tar.bz2
Switch to getNameStr().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index 6fd5df2..386d732 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@ -138,8 +138,8 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
void SelectionDAG::viewGraph(const std::string &Title) {
// This code is only for debugging!
#ifndef NDEBUG
- ViewGraph(this, "dag." + getMachineFunction().getFunction()->getName(), false,
- Title);
+ ViewGraph(this, "dag." + getMachineFunction().getFunction()->getNameStr(),
+ false, Title);
#else
cerr << "SelectionDAG::viewGraph is only available in debug builds on "
<< "systems with Graphviz or gv!\n";