Argyrios Kyrtzidis
b4b64ca752
Remove the ASTContext parameter from the attribute-related methods of Decl.
...
The implementations of these methods can Use Decl::getASTContext() to get the ASTContext.
This commit touches a lot of files since call sites for these methods are everywhere.
I used pre-tokenized "carbon.h" and "cocoa.h" headers to do some timings, and there was no real time difference between before the commit and after it.
llvm-svn: 74501
2009-06-30 02:34:44 +00:00
Douglas Gregor
78bd61f661
Move the static DeclAttrs map into ASTContext. Fixes <rdar://problem/6983177>.
...
llvm-svn: 73702
2009-06-18 16:11:24 +00:00
Ted Kremenek
f718f0112e
Deallocate 'DeclRefExpr's in correctly formed '#pragma unused'
...
llvm-svn: 67573
2009-03-23 22:50:47 +00:00
Ted Kremenek
fd14fade2f
Implement '#pragma unused'.
...
llvm-svn: 67569
2009-03-23 22:28:25 +00:00
Daniel Dunbar
e03c6102cc
Handle #pragma pack(0). I left this out of diagnostic because users should
...
really use pack() instead.
- <rdar://problem/6650243> clang warns about '#pragma pack(0)'
llvm-svn: 66287
2009-03-06 20:45:54 +00:00
Chris Lattner
31180bbfb4
Make PragmaPackStack be a private class in SemaAttr and make its
...
instance in Sema be a pimpl.
llvm-svn: 64718
2009-02-17 01:09:29 +00:00
Chris Lattner
2eccbc1e5d
move attribute(packed) sema support out of SemaDecl into a new SemaAttr.cpp file.
...
llvm-svn: 64711
2009-02-17 00:57:29 +00:00