[PATCH] Teach CC1 to dump module dependencies to a directory

Justin Bogner mail at justinbogner.com
Mon Jun 9 20:07:20 PDT 2014


This is lead up to making crash reports more useful when modules are
being used. Since module imports are left unchanged by the preprocessor,
these reports aren't really useful for reproducing problems today.

The attached patches add a -cc1 flag to dump module dependencies to a
directory, and then to create a VFS mapping file so that these headers
can be used with -ivfsoverlay. Later, I plan on hooking the flag up in
generateCompilationDiagnostics.

No tests included. I'll spin some up before I commit, but I thought I
might as well send this to be reviewed in the mean time.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Frontend-Add-a-CC1-flag-to-dump-module-dependencies-.patch
Type: text/x-patch
Size: 10644 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140609/4ba21bec/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Frontend-Include-a-VFS-map-when-dumping-module-depen.patch
Type: text/x-patch
Size: 3225 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140609/4ba21bec/attachment-0001.bin>


More information about the cfe-commits mailing list