The flag "--dot-cfg-only" is at the moment equivalent to the flag "--dot-cfg".
authorDuncan Sands <baldrick@free.fr>
Sat, 19 Sep 2009 11:25:44 +0000 (11:25 +0000)
committerDuncan Sands <baldrick@free.fr>
Sat, 19 Sep 2009 11:25:44 +0000 (11:25 +0000)
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

lib/Analysis/CFGPrinter.cpp

index 03cfb9d51d859b7040c96a211d5ff3efec73dc8b..6fed4005d19350ab8c942257a838258f74f9627c 100644 (file)
@@ -110,7 +110,7 @@ namespace {
     CFGOnlyViewer() : FunctionPass(&ID) {}
 
     virtual bool runOnFunction(Function &F) {
-      F.viewCFG();
+      F.viewCFGOnly();
       return false;
     }