summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
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
commit1636b7ef47fd112fa265ce9497668fc8e2f96c19 (patch)
tree8ce71aa65fe12fd3428a2cca207c69cda48699dc /llvm/lib/Analysis
parentb82b5514fecdb5cb4501969c88b7952dd713f436 (diff)
downloadbcm5719-llvm-1636b7ef47fd112fa265ce9497668fc8e2f96c19.tar.gz
bcm5719-llvm-1636b7ef47fd112fa265ce9497668fc8e2f96c19.zip
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. llvm-svn: 82315
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/CFGPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/CFGPrinter.cpp b/llvm/lib/Analysis/CFGPrinter.cpp
index 03cfb9d51d8..6fed4005d19 100644
--- a/llvm/lib/Analysis/CFGPrinter.cpp
+++ b/llvm/lib/Analysis/CFGPrinter.cpp
@@ -110,7 +110,7 @@ namespace {
CFGOnlyViewer() : FunctionPass(&ID) {}
virtual bool runOnFunction(Function &F) {
- F.viewCFG();
+ F.viewCFGOnly();
return false;
}
OpenPOWER on IntegriCloud