[cfe-dev] Attribute 'nodebug' on variables
Sean Silva via cfe-dev
cfe-dev at lists.llvm.org
Thu Apr 14 20:37:04 PDT 2016
On Thu, Apr 14, 2016 at 2:50 PM, Robinson, Paul via cfe-dev <
cfe-dev at lists.llvm.org> wrote:
> The 'nodebug' attribute is allowed on functions; it suppresses debug
> info for that function (no surprise there). This includes both the
> function itself and any inlined instances.
>
> The 'nodebug' attribute is allowed on global/static variables; however,
> the effect is to suppress debug info for the associated initializer
> function, if any. Debug info for the variable itself is unaffected.
>
> I'd like to make it suppress debug info for the variable itself.
> Anyone have an objection?
>
> Background info:
> The 'nodebug' attribute appears to be a Clang invention; I don't see any
> gcc documentation for it, and can't persuade gcc to accept it. So, what
> it means is pretty much up to Clang, AFAICT.
>
> (I don't see any *Clang* documentation for 'nodebug' either, which is a
> separate problem.)
>
Can you update include/clang/Basic/AttrDocs.td ?
(which becomes http://clang.llvm.org/docs/AttributeReference.html)
-- Sean Silva
>
> Thanks,
> --paulr
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160414/08e631e4/attachment.html>
More information about the cfe-dev
mailing list