aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/CFGPrinter.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
commit25ad1cc32af8d526eb72893a513a486bc28c5106 (patch)
tree8edea583967c6ef78314c554f85da718f6d3ad20 /lib/Analysis/CFGPrinter.cpp
parentd1bfc301986c5e3203ec57cba4122342f7dca108 (diff)
downloadexternal_llvm-25ad1cc32af8d526eb72893a513a486bc28c5106.zip
external_llvm-25ad1cc32af8d526eb72893a513a486bc28c5106.tar.gz
external_llvm-25ad1cc32af8d526eb72893a513a486bc28c5106.tar.bz2
Twinify GraphWriter a little bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFGPrinter.cpp')
-rw-r--r--lib/Analysis/CFGPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/CFGPrinter.cpp b/lib/Analysis/CFGPrinter.cpp
index 7bb063f..e01188c 100644
--- a/lib/Analysis/CFGPrinter.cpp
+++ b/lib/Analysis/CFGPrinter.cpp
@@ -143,7 +143,7 @@ INITIALIZE_PASS(CFGOnlyPrinter, "dot-cfg-only",
/// being a 'dot' and 'gv' program in your path.
///
void Function::viewCFG() const {
- ViewGraph(this, "cfg" + getNameStr());
+ ViewGraph(this, "cfg" + getName());
}
/// viewCFGOnly - This function is meant for use from the debugger. It works
@@ -152,7 +152,7 @@ void Function::viewCFG() const {
/// his can make the graph smaller.
///
void Function::viewCFGOnly() const {
- ViewGraph(this, "cfg" + getNameStr(), true);
+ ViewGraph(this, "cfg" + getName(), true);
}
FunctionPass *llvm::createCFGPrinterPass () {