aboutsummaryrefslogtreecommitdiffstats
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
commitd899f5970f3e1437cff128a7cf3331a8bcf599b9 (patch)
tree11aa6e64d2d1b257a7ccbf5b7ad7161480df488a
parentbb57eefc4bd33cf3e83b2fb56a6b4fd7f4825bfa (diff)
downloadexternal_llvm-d899f5970f3e1437cff128a7cf3331a8bcf599b9.zip
external_llvm-d899f5970f3e1437cff128a7cf3331a8bcf599b9.tar.gz
external_llvm-d899f5970f3e1437cff128a7cf3331a8bcf599b9.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
-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;
}