<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Eric, Here's the patch to create a global dwarf level variable. <br>
    <br>
    Have you implemented this already? Does this patch work with what
    you are doing?<br>
    <br>
    Thanks<br>
    Rick Foos<br>
    <br>
    On 11/25/2012 01:43 PM, Pranav Bhandarkar wrote:
    <blockquote cite="mid:50B274CA.4020005@codeaurora.org" type="cite">Hi,
      <br>
      <br>
      In October, there had been a discussion
      (<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-October/054543.html">http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-October/054543.html</a>)
      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.
      <br>
      <br>
      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.
      <br>
      <br>
      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".
      <br>
      <br>
      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.
      <br>
      <br>
      Thanks,
      <br>
      Pranav
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
llvm-commits mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Rick Foos
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation</pre>
  </body>
</html>