diff options
author | Duncan Sands <baldrick@free.fr> | 2009-09-19 11:25:44 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-09-19 11:25:44 +0000 |
commit | ad3893678172e7b22a6d4ef3e6387b8d773aa1c7 (patch) | |
tree | 11aa6e64d2d1b257a7ccbf5b7ad7161480df488a | |
parent | 431f775bab2c1ca144e3c9c6b1e3c0767bfacc33 (diff) | |
download | external_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
-rw-r--r-- | lib/Analysis/CFGPrinter.cpp | 2 |
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; } |