[cfe-dev] Bug: clang-cc -cfg-view

Micky J micky686 at gmail.com
Mon Apr 26 18:43:06 PDT 2010

After checking out and building llvm ,
running clang-cc on the program file.c
simply does not produce any results.

int main (int argc, char* argv[]) {

  return 0;

Here is the run session:

$ clang-cc -cfg-dump -v file.c
clang-cc version 1.1 based upon llvm 2.7svn hosted on i386-pc-linux-gnu
ignoring nonexistent directory "/System/Library/Frameworks"
ignoring nonexistent directory "/Library/Frameworks"
#include "..." search starts here:
#include <...> search starts here:
End of search list.

The -ast-dump and -ast-view options work perfectly, but the -cfg-dump and
-cfg-view options do not.
Does someone have any recommendations on how to get -cfg-dump and -cfg-view
to work with clang-cc or
for some other visualization alternatives of llvm code CFGs?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100427/1666df3a/attachment.html>

More information about the cfe-dev mailing list