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
This commit is contained in:
Duncan Sands 2009-09-19 11:25:44 +00:00
parent 431f775bab
commit ad38936781

View File

@ -110,7 +110,7 @@ namespace {
CFGOnlyViewer() : FunctionPass(&ID) {}
virtual bool runOnFunction(Function &F) {
F.viewCFG();
F.viewCFGOnly();
return false;
}