[llvm-commits] [PATCH] - RFC - Selecting a Dwarf Info version from the command line.

Rick Foos rfoos at codeaurora.org
Mon Nov 26 13:33:12 PST 2012


Hi Eric, Here's the patch to create a global dwarf level variable.

Have you implemented this already? Does this patch work with what you 
are doing?

Thanks
Rick Foos

On 11/25/2012 01:43 PM, Pranav Bhandarkar wrote:
> Hi,
>
> In October, there had been a discussion 
> (http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-October/054543.html) 
> about DWARF information related backwards compatibility. Rick Foos (he 
> was speaking on my behalf too), in the email above, had proposed a 
> mechanism for backwards compatibility. Unfortunately, I could not tend 
> to it at that time, but now I have been able to. I am attaching two 
> patches here, one for LLVM and the other for clang.
>
> 1) The LLVM patch introduces a command line variable DwarfDebugLevel 
> that is set to 4 by default. Additionaly, as a first step, this is 
> used in CompileUnit:addFlag to gate the use of DW_FORM_flag_present 
> which is a DWARF 4 addition that is compatible with DWARF 3.
>
> 2) The second patch is a patch to clang to process the -gdwarf-2/3/4 
> flags, which involves setting DwarfDebugLevel using the 
> -dwarf-debug-level option for "clang -cc1".
>
> This is an initial proposal. Please comment on what changes are 
> needed. I am posting the clang patch here too because I wanted to post 
> both the patches in one place. If cfe-commits is a better place to 
> post (or if the two patches should be posted on both the lists) please 
> let me know, and I'll do that.
>
> Thanks,
> Pranav
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


-- 
Rick Foos
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121126/256bf5c9/attachment.html>


More information about the llvm-commits mailing list