[llvm-commits] [llvm] r82315 - /llvm/trunk/lib/Analysis/CFGPrinter.cpp
Duncan Sands
baldrick at free.fr
Sat Sep 19 04:25:44 PDT 2009
Author: baldrick
Date: Sat Sep 19 06:25:44 2009
New Revision: 82315
URL: http://llvm.org/viewvc/llvm-project?rev=82315&view=rev
Log:
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.
Modified:
llvm/trunk/lib/Analysis/CFGPrinter.cpp
Modified: llvm/trunk/lib/Analysis/CFGPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CFGPrinter.cpp?rev=82315&r1=82314&r2=82315&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/CFGPrinter.cpp (original)
+++ llvm/trunk/lib/Analysis/CFGPrinter.cpp Sat Sep 19 06:25:44 2009
@@ -110,7 +110,7 @@
CFGOnlyViewer() : FunctionPass(&ID) {}
virtual bool runOnFunction(Function &F) {
- F.viewCFG();
+ F.viewCFGOnly();
return false;
}
More information about the llvm-commits
mailing list