summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit12368685d840dd4a0dfffba8cc1fe13a09f780f3 (patch)
tree04987136e5abdc1b02b4d605636e7d4cdec86a1b /llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
parentcd51ea510af48e4a323381beb2e733968c080b45 (diff)
downloadbcm5719-llvm-12368685d840dd4a0dfffba8cc1fe13a09f780f3.tar.gz
bcm5719-llvm-12368685d840dd4a0dfffba8cc1fe13a09f780f3.zip
Switch to getNameStr().
llvm-svn: 76962
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index 6fd5df2b937..386d732348f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/llvm/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";
OpenPOWER on IntegriCloud