diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-19 20:52:06 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-19 20:52:06 +0000 |
commit | 93fb9ed05655512cb14022c667058c078ca90b3c (patch) | |
tree | 09c3a0a55eb7b3adda8b3fd44a211779665571bc /include/clang/Frontend/PCHReader.h | |
parent | 1348af6b06aff25a25b42d7dcc9b8438d975cca9 (diff) |
Promote the identifier table to per-file data. Also, if a CHAINED_METADATA record exists, it has to be the first thing in the PCH file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108748 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/PCHReader.h')
-rw-r--r-- | include/clang/Frontend/PCHReader.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/clang/Frontend/PCHReader.h b/include/clang/Frontend/PCHReader.h index be0e1d4e02..9ec7ea40d5 100644 --- a/include/clang/Frontend/PCHReader.h +++ b/include/clang/Frontend/PCHReader.h @@ -233,6 +233,16 @@ private: /// \brief The number of declarations in this PCH file. unsigned LocalNumDecls; + + /// \brief Actual data for the on-disk hash table. + /// + // This pointer points into a memory buffer, where the on-disk hash + // table for identifiers actually lives. + const char *IdentifierTableData; + + /// \brief A pointer to an on-disk hash table of opaque type + /// IdentifierHashTable. + void *IdentifierLookupTable; }; /// \brief The chain of PCH files. The first entry is the one named by the @@ -276,16 +286,6 @@ private: /// DeclContext. DeclContextOffsetsMap DeclContextOffsets; - /// \brief Actual data for the on-disk hash table. - /// - // This pointer points into a memory buffer, where the on-disk hash - // table for identifiers actually lives. - const char *IdentifierTableData; - - /// \brief A pointer to an on-disk hash table of opaque type - /// IdentifierHashTable. - void *IdentifierLookupTable; - /// \brief Offsets into the identifier table data. /// /// This array is indexed by the identifier ID (-1), and provides @@ -534,8 +534,8 @@ private: PCHReadResult ReadPCHCore(llvm::StringRef FileName); PCHReadResult ReadPCHBlock(PerFileData &F); bool CheckPredefinesBuffers(); - bool ParseLineTable(llvm::SmallVectorImpl<uint64_t> &Record); - PCHReadResult ReadSourceManagerBlock(); + bool ParseLineTable(PerFileData &F, llvm::SmallVectorImpl<uint64_t> &Record); + PCHReadResult ReadSourceManagerBlock(PerFileData &F); PCHReadResult ReadSLocEntryRecord(unsigned ID); bool ParseLanguageOptions(const llvm::SmallVectorImpl<uint64_t> &Record); |