summaryrefslogtreecommitdiff
path: root/clang/README.txt
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-08-29 23:26:37 +0000
committerTed Kremenek <kremenek@apple.com>2007-08-29 23:26:37 +0000
commit7142e18823c27a73d4094f2f508bb3af0d559a53 (patch)
tree0c00cbb9ac7b2d2a63ecc33577a70b74e25a0984 /clang/README.txt
parent71eca01291f4b90c202bb560f070383e48d281ca (diff)
downloadllvm-7142e18823c27a73d4094f2f508bb3af0d559a53.tar.gz
Added comments about -dump-cfg and -view-cfg modes for the clang driver.
llvm-svn: 41586
Diffstat (limited to 'clang/README.txt')
-rw-r--r--clang/README.txt29
1 files changed, 19 insertions, 10 deletions
diff --git a/clang/README.txt b/clang/README.txt
index cbba8425bd60..41bca026c9eb 100644
--- a/clang/README.txt
+++ b/clang/README.txt
@@ -81,22 +81,31 @@ II. Usage of clang driver:
* -E mode works the same way as GCC.
- * -Eonly mode does all preprocessing, but does not print the output, useful for
- timing the preprocessor.
+ * -Eonly mode does all preprocessing, but does not print the output,
+ useful for timing the preprocessor.
- * -fsyntax-only is currently partially implemented, lacking some semantic
- analysis (some errors and warnings are not produced).
+ * -fsyntax-only is currently partially implemented, lacking some
+ semantic analysis (some errors and warnings are not produced).
- * -parse-noop parses code without building an AST. This is useful for timing
- the cost of the parser without including AST building time.
+ * -parse-noop parses code without building an AST. This is useful
+ for timing the cost of the parser without including AST building
+ time.
- * -parse-ast builds ASTs, but doesn't print them. This is most useful for
- timing AST building vs -parse-noop.
+ * -parse-ast builds ASTs, but doesn't print them. This is most
+ useful for timing AST building vs -parse-noop.
* -parse-ast-print pretty prints most expression and statements nodes.
- * -parse-ast-check checks that diagnostic messages that are expected are
- reported and that those which are reported are expected.
+ * -parse-ast-check checks that diagnostic messages that are expected
+ are reported and that those which are reported are expected.
+
+ * -dump-cfg builds ASTs and then CFGs. CFGs are then pretty-printed.
+
+ * -view-cfg builds ASTs and then CFGs. CFGs are then visualized by
+ invoking Graphviz.
+
+ For more information on getting Graphviz to work with clang/LLVM,
+ see: http://llvm.org/docs/ProgrammersManual.html#ViewGraph
III. Current advantages over GCC: