<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 5, 2013 at 10:22 AM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im">On Tue, Feb 5, 2013 at 10:12 AM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>></span> wrote:<br>
</div><div class="gmail_extra"><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Mon, Feb 4, 2013 at 11:47 PM, Chandler Carruth <span dir="ltr"><<a href="mailto:chandlerc@google.com" target="_blank">chandlerc@google.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><div>On Mon, Feb 4, 2013 at 11:29 PM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>+  // -gsplit-dwarf should turn on -g and enable the backend dwarf<br>
+  // splitting and extraction.<br>
+  if (Args.hasArg(options::OPT_gsplit_dwarf)) {<br>
+    CmdArgs.push_back("-g");<br>
+    CmdArgs.push_back("-backend-option");<br>
+    CmdArgs.push_back("-split-dwarf=Enable");<br></div></blockquote><div><br></div></div><div>This seems a strange flag spelling... Are there values other than "Enable"? I half expected just the standard binary '-split-debug' or nothing of CC1 options...</div>


</div></div></div></blockquote><div><br></div></div></div><div>Yeah, I put it as a tri-state Enable, Disable and Default so that we could enable it easier by default for certain targets.</div></div></div></div></blockquote>

<div><br></div></div><div>That kind of defaulting logic seems better to have in the driver than in CC1 to me.</div></div></div></div>
</blockquote></div><br></div><div class="gmail_extra" style>It's actually in the backend and not cc1. The usage of the -gsplit-dwarf means to enable it whether or not the backend would default to it or not. The =Disable is just a way of turning it on/off via the backend.</div>
<div class="gmail_extra" style><br></div><div class="gmail_extra" style>-eric</div></div>