12 feb 2009 kl. 23.08 skrev Chris Lattner:

> On Feb 12, 2009, at 10:46 PM, Anders Carlsson wrote:
>> URL: http://llvm.org/viewvc/llvm-project?rev=64441&view=rev
>> Log:
>> Add sema support for the nodebug attribute.
>
> Is nodebug a type or decl attribute?  It seems that it would apply  
> to decls,

It's for function decls only -

   FunctionDecl *Fn = dyn_cast<FunctionDecl>(d);
   if (!Fn) {
     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
       << "nodebug" << "function";
     return;
   }

(I know, I know - I'll change it to isa<> :)

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to