From ad3893678172e7b22a6d4ef3e6387b8d773aa1c7 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Sat, 19 Sep 2009 11:25:44 +0000 Subject: [PATCH] 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 --- lib/Analysis/CFGPrinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Analysis/CFGPrinter.cpp b/lib/Analysis/CFGPrinter.cpp index 03cfb9d51d8..6fed4005d19 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; }