aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/CFGPrinter.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-09-19 11:25:44 +0000
committerDuncan Sands <baldrick@free.fr>2009-09-19 11:25:44 +0000
commitad3893678172e7b22a6d4ef3e6387b8d773aa1c7 (patch)
tree11aa6e64d2d1b257a7ccbf5b7ad7161480df488a /lib/Analysis/CFGPrinter.cpp
parent431f775bab2c1ca144e3c9c6b1e3c0767bfacc33 (diff)
downloadexternal_llvm-ad3893678172e7b22a6d4ef3e6387b8d773aa1c7.zip
external_llvm-ad3893678172e7b22a6d4ef3e6387b8d773aa1c7.tar.gz
external_llvm-ad3893678172e7b22a6d4ef3e6387b8d773aa1c7.tar.bz2
The flag "--dot-cfg-only" is at the moment equivalent to the flag "--dot-cfg".
It prints the content of all bbs, instead of printing empty bbs to make the CFG more readable. Fix this. Patch by Tobias Grosser. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/CFGPrinter.cpp')
-rw-r--r--lib/Analysis/CFGPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/CFGPrinter.cpp b/lib/Analysis/CFGPrinter.cpp
index 03cfb9d..6fed400 100644
--- a/lib/Analysis/CFGPrinter.cpp
+++ b/lib/Analysis/CFGPrinter.cpp
@@ -110,7 +110,7 @@ namespace {
CFGOnlyViewer() : FunctionPass(&ID) {}
virtual bool runOnFunction(Function &F) {
- F.viewCFG();
+ F.viewCFGOnly();
return false;
}