aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Serialization/Module.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-15 18:02:56 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-15 18:02:56 +0000
commite24692b30adbe8144597678a0e3354912e99c747 (patch)
treec2c6feb9d898a6acaa32f25fdba2e6547636a6ff /include/clang/Serialization/Module.h
parent69f5d14bae44f05b22fa50bb87122a61081fcd57 (diff)
[PCH] Overhaul how preprocessed entities are [de]serialized.
-Use an array of offsets for all preprocessed entities -Get rid of the separate array of offsets for just macro definitions; for references to macro definitions use an index inside the preprocessed entities array. -Deserialize each preprocessed entity lazily, at first request; not in bulk. Paves the way for binary searching of preprocessed entities that will offer efficiency and will simplify things on the libclang side a lot. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139809 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Serialization/Module.h')
-rw-r--r--include/clang/Serialization/Module.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/include/clang/Serialization/Module.h b/include/clang/Serialization/Module.h
index c35a4f0096..9f063316c1 100644
--- a/include/clang/Serialization/Module.h
+++ b/include/clang/Serialization/Module.h
@@ -177,19 +177,8 @@ public:
/// \brief Remapping table for preprocessed entity IDs in this module.
ContinuousRangeMap<uint32_t, int, 2> PreprocessedEntityRemap;
- /// \brief The number of macro definitions in this file.
- unsigned LocalNumMacroDefinitions;
-
- /// \brief Offsets of all of the macro definitions in the preprocessing
- /// record in the AST file.
- const uint32_t *MacroDefinitionOffsets;
-
- /// \brief Base macro definition ID for macro definitions local to this
- /// module.
- serialization::MacroID BaseMacroDefinitionID;
-
- /// \brief Remapping table for macro definition IDs in this module.
- ContinuousRangeMap<uint32_t, int, 2> MacroDefinitionRemap;
+ const uint32_t *PreprocessedEntityOffsets;
+ unsigned NumPreprocessedEntities;
// === Header search information ===
@@ -309,10 +298,6 @@ public:
/// The dynamic type of this stat cache is always ASTStatCache
void *StatCache;
- /// \brief The number of preallocated preprocessing entities in the
- /// preprocessing record.
- unsigned NumPreallocatedPreprocessingEntities;
-
/// \brief List of modules which depend on this module
llvm::SetVector<Module *> ImportedBy;