[cfe-dev] Emitting full clang command line into Debug Info

Steven Wu via cfe-dev cfe-dev at lists.llvm.org
Fri Feb 9 09:19:05 PST 2018


The embed bitcode option does embed all the cc1 command line in the bitcode but there is not a mode to embed only the command line right now. The implementation is in lib/CodeGen/BackendUtil.cpp.

Steven

> On Feb 9, 2018, at 3:53 AM, Jonas Devlieghere <jdevlieghere at apple.com> wrote:
> 
> + Steven who did some work on storing the cc1 options for embedded bitcode. 
> 
>> On Feb 9, 2018, at 12:15 AM, George Karpenkov via cfe-dev <cfe-dev at lists.llvm.org> wrote:
>> 
>> I did something similar not for the debug info, but for the HTML reports emitted by the analyzer: https://reviews.llvm.org/D42269
>> 
>>> On Feb 8, 2018, at 3:59 PM, Zachary Turner via cfe-dev <cfe-dev at lists.llvm.org> wrote:
>>> 
>>> For CodeView compatibility purposes, we need to be able to emit the full command line of the clang driver into the debug info (cc1 command line is fine, at least for CV purposes).
>>> 
>>> rnk@ tells me that he vaguely recalls some people needing this before, but he can't recall if there's been an actual effort to submit patches to this effect that got blocked on something, or if people are maintaining similar patches downstream, or none of the above / something else.
>>> 
>>> Has anyone attempted something like this before?
>>> _______________________________________________
>>> cfe-dev mailing list
>>> cfe-dev at lists.llvm.org
>>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>> 
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
> 




More information about the cfe-dev mailing list