<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Tue, Apr 24, 2018 at 10:08 AM Alexey Bataev via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">ABataev added a comment.<br>
<br>
In <a href="https://reviews.llvm.org/D46021#1077023" rel="noreferrer" target="_blank">https://reviews.llvm.org/D46021#1077023</a>, @dblaikie wrote:<br>
<br>
> Sorry, I'm a bit confused.<br>
><br>
> 1. I'd expect /this/ behavior (line table directives, but no debug_info, etc) to be controlled via a DICompileUnit emission kind (a value between "NoDebug" and "LineTablesOnly" as Paul mentioned).<br>
> 2. I'd expect the "no ', debug'" flag (which I don't see in this change? Is it missing? is it elsewhere?) to be controlled via an MCOption - because it must be global.<br>
><br>
>   Now, arguably, if we have the global "no ', debug'" flag we maybe might as well use it to implement this behavior too since we don't have any other use for it? So maybe (2) invalidates (1).<br>
<br>
<br>
I thought, that it is not very useful to have an option that, actually, controls only single target and I decided instead to add the option that just disables emission of the DWARF sections. In this case we don't need the special debug info mode, we can use this option.<br></blockquote><div><br>I'm not sure I follow - specifically I'm still not sure where the "no ', debug'" support is in this patch - did I miss it?<br><br>As for whether it's useful to have the "don't emit debug sections except for the line table" as a DICompileUnit feature - the reason to put it there would be for consistency with other related variations in debug info emission, even if it is only used by one target.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D46021" rel="noreferrer" target="_blank">https://reviews.llvm.org/D46021</a><br>
<br>
<br>
<br>
</blockquote></div></div>