[cfe-dev] CFG::dump in clang
Surinder J
sjai8466 at uni.sydney.edu.au
Sun Dec 12 16:48:35 PST 2010
I want to obtain a dump of CFG for a simple foo program
#include <stdio.h>
int main() {
printf("Hello, World!\n");
}
I have tried the command
clang -cfg-dump foo.c
It gives a warning and ignores -cfg-dump option.
Also, if it is unable to link edit the program. when I give the command
clang foo.c
It gives an error
/usr/bin/ld: crtbegin.o: No such file: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Running with -v option gives the error
/usr/bin/ld: crtbegin.o: No such file: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Any help to dump cfg would be appreciated.
Surinder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101213/64345698/attachment.html>
More information about the cfe-dev
mailing list