From 10f3df54486385e6497c9e5f229ff816e5a6c511 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Fri, 28 Oct 2011 22:54:21 +0000 Subject: [PCH] Keep track of file-level declarations that are contained by files. Introduce a FILE_SORTED_DECLS [de]serialization record that contains a file sorted array of file-level DeclIDs in a PCH/Module. The rationale is to allow "targeted" deserialization of decls inside a range of a source file. Cocoa PCH increased by 0.8% Difference of creation time for Cocoa PCH is below the noise level. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143238 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Serialization/Module.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/clang/Serialization/Module.h') diff --git a/include/clang/Serialization/Module.h b/include/clang/Serialization/Module.h index 5c0cc9d296..43687f46dd 100644 --- a/include/clang/Serialization/Module.h +++ b/include/clang/Serialization/Module.h @@ -271,6 +271,9 @@ public: /// Key is the ID of the interface. /// Value is a pair of linked category DeclIDs (head category, tail category). ChainedObjCCategoriesMap ChainedObjCCategories; + + /// \brief Array of file-level DeclIDs sorted by file. + const serialization::DeclID *FileSortedDecls; // === Types === -- cgit v1.2.3-70-g09d2