[cfe-dev] [PATCH]: Preparing AST for C++ declarations

Argiris Kirtzidis akyrtzi at gmail.com
Thu Jun 5 01:45:14 PDT 2008

Eli Friedman wrote:
> Most important issue: you're adding an Access member to TypeDecl, a
> class which isn't C++-specific.  This will increase the size of all
> TypeDecls for C code by 4 bytes.

In the attached patch the access specifier is packed with the bitfields 
of Decl. This reduces the size of C++ decls as well (i.e CXXField).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ast-cxx-2.patch
Type: text/x-diff
Size: 22819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080605/1f820cdd/attachment.patch>

More information about the cfe-dev mailing list