summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-11-15 16:26:38 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-11-15 16:26:38 +0000
commit4c93d15f09bca663756808e4a318f52c705107df (patch)
treecf23e0c9da4ea8faf20db5757b85b100db8b8a38 /llvm/lib/CodeGen/MachineFunction.cpp
parent6c8f07ff46c8cd41d120f9ab001f8b647961532b (diff)
downloadbcm5719-llvm-4c93d15f09bca663756808e4a318f52c705107df.tar.gz
bcm5719-llvm-4c93d15f09bca663756808e4a318f52c705107df.zip
Twinify GraphWriter a little bit.
llvm-svn: 144647
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 20066a067b8..64eae7b2654 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -368,7 +368,7 @@ namespace llvm {
void MachineFunction::viewCFG() const
{
#ifndef NDEBUG
- ViewGraph(this, "mf" + getFunction()->getNameStr());
+ ViewGraph(this, "mf" + getFunction()->getName());
#else
errs() << "MachineFunction::viewCFG is only available in debug builds on "
<< "systems with Graphviz or gv!\n";
@@ -378,7 +378,7 @@ void MachineFunction::viewCFG() const
void MachineFunction::viewCFGOnly() const
{
#ifndef NDEBUG
- ViewGraph(this, "mf" + getFunction()->getNameStr(), true);
+ ViewGraph(this, "mf" + getFunction()->getName(), true);
#else
errs() << "MachineFunction::viewCFGOnly is only available in debug builds on "
<< "systems with Graphviz or gv!\n";
OpenPOWER on IntegriCloud