Added comments about -dump-cfg and -view-cfg modes for the clang driver.

llvm-svn: 41586
This commit is contained in:
Ted Kremenek 2007-08-29 23:26:37 +00:00
parent 71eca01291
commit 7142e18823
1 changed files with 19 additions and 10 deletions

View File

@ -81,22 +81,31 @@ II. Usage of clang driver:
* -E mode works the same way as GCC. * -E mode works the same way as GCC.
* -Eonly mode does all preprocessing, but does not print the output, useful for * -Eonly mode does all preprocessing, but does not print the output,
timing the preprocessor. useful for timing the preprocessor.
* -fsyntax-only is currently partially implemented, lacking some semantic * -fsyntax-only is currently partially implemented, lacking some
analysis (some errors and warnings are not produced). semantic analysis (some errors and warnings are not produced).
* -parse-noop parses code without building an AST. This is useful for timing * -parse-noop parses code without building an AST. This is useful
the cost of the parser without including AST building time. 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 * -parse-ast builds ASTs, but doesn't print them. This is most
timing AST building vs -parse-noop. useful for timing AST building vs -parse-noop.
* -parse-ast-print pretty prints most expression and statements nodes. * -parse-ast-print pretty prints most expression and statements nodes.
* -parse-ast-check checks that diagnostic messages that are expected are * -parse-ast-check checks that diagnostic messages that are expected
reported and that those which are reported 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: III. Current advantages over GCC: