[cfe-commits] r49142 - in /cfe/trunk: include/clang/AST/TranslationUnit.h lib/AST/TranslationUnit.cpp

Sam Bishop sam at bishop.dhs.org
Thu Apr 3 21:08:31 PDT 2008


Ted Kremenek wrote:
> We could potentially create the ASTContext object first, or just pass  
> the allocator.  I think I ordered the way things were serialized/ 
> deserialized to reduce the amount of pointer backpatching, with the  
> ASTContext being deserialized last.  Also, by just passing the  
> allocator we remove a dependency between Decls and ASTContext.

Besides this, I think I have a pretty good idea of what needs to be 
done.  So what I think I will do, for the moment, is create a 
temporary MallocAllocator object to pass around during the 
deserialization process.

Thanks again!

Sam



More information about the cfe-commits mailing list