]> granicus.if.org Git - clang/commit
In the serialized AST format, make the translation unit a "predefined"
authorDouglas Gregor <dgregor@apple.com>
Fri, 12 Aug 2011 00:15:20 +0000 (00:15 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 12 Aug 2011 00:15:20 +0000 (00:15 +0000)
commit6bf2b9fbd3e3adc38d4712de79aeaa81d651aa08
treee5eaa8ad4655ff6ff9d0416e6eb55f791985db7e
parent63ab2c54dc641d4f3d28841aa86affbfdf805d32
In the serialized AST format, make the translation unit a "predefined"
declaration that never actually gets serialized. Instead, serialize
the various kinds of update records (lexical decls, visible decls, the
addition of an anonymous namespace) for the translation unit, even if
we're not chaining. This way, we won't have to deal with multiple
loaded translation unit declarations.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137395 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Serialization/ASTBitCodes.h
include/clang/Serialization/ASTReader.h
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriter.cpp
lib/Serialization/ASTWriterDecl.cpp
tools/libclang/CIndex.cpp