<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 14, 2016 at 2:50 PM, Robinson, Paul via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">The 'nodebug' attribute is allowed on functions; it suppresses debug<br>
info for that function (no surprise there).  This includes both the<br>
function itself and any inlined instances.<br>
<br>
The 'nodebug' attribute is allowed on global/static variables; however,<br>
the effect is to suppress debug info for the associated initializer<br>
function, if any.  Debug info for the variable itself is unaffected.<br>
<br>
I'd like to make it suppress debug info for the variable itself.<br>
Anyone have an objection?<br>
<br>
Background info:<br>
The 'nodebug' attribute appears to be a Clang invention; I don't see any<br>
gcc documentation for it, and can't persuade gcc to accept it.  So, what<br>
it means is pretty much up to Clang, AFAICT.<br>
<br>
(I don't see any *Clang* documentation for 'nodebug' either, which is a<br>
separate problem.)<br></blockquote><div><br></div><div>Can you update include/clang/Basic/AttrDocs.td ?</div><div><br></div><div>(which becomes <a href="http://clang.llvm.org/docs/AttributeReference.html">http://clang.llvm.org/docs/AttributeReference.html</a>)</div>







<div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Thanks,<br>
--paulr<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div></div>