]> granicus.if.org Git - clang/commit
Modifed the test serialization driver to...
authorTed Kremenek <kremenek@apple.com>
Sat, 10 Nov 2007 02:07:12 +0000 (02:07 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 10 Nov 2007 02:07:12 +0000 (02:07 +0000)
commit7a1f4dbb9c57b0109082660213f52238a65d68db
tree1ffc5cfbba8f6a5f6f0fa7a919be7047fc44a36c
parent18807d2bfb9282a35b921b4feeda09ffaa110e6b
Modifed the test serialization driver to...

(1) serialize out top-level decls BEFORE serializing out translation unit
structures like ASTContext.

(2) deserialize out translation unit structures like ASTContext before
top-level decls by first skipping the decls in the bitstream, deserializing
ASTContext and friends, and then jumping back to the bitstream block with the
decls and then deserializing them.

Change (1) allows us to utilize the pointer-tracking system in the Serializer
to only serialize out metadata that is actually referenced by the ASTS.

Change (2) allows us to deserialize the metadata first as before, which
signficantly reduces the amount of pointer backpatching the deserializer
would have to do if the decls were deserialized first.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43974 91177308-0d34-0410-b5e6-96231b3b80d8
Driver/SerializationTest.cpp