mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This includes the reading half of BCRecordLayout metaprogramming, and then a fairly straightforward deserialize-and-cache implementation in ModuleFile. Once again, this is based on Clang's module implementation: decls and types are referred to by an ID, which is used as an index into an array, which contains offsets to the definitions of the decl/type in the "decls-and-types" block in the serialized module. In order to test the feature, the code is currently eagerly deserializing all declarations. This will be partially fixed in the next commit. Swift SVN r5324
10 KiB
10 KiB