diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-12-01 02:07:58 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-12-01 02:07:58 +0000 |
commit | 185dbd7782a45d0f830218bfbc196c6b664ed8d9 (patch) | |
tree | 933a6dc578cf4e31b6c193ebfaebdf10eabdcd56 /include/clang | |
parent | f1d1ca5b2b40e66d927c2abd16d8baa21af6911f (diff) |
Infer the submodule ID for a given declaration based on the location
of that declaration, and encode the submodule ID in each declaration
stored in an AST file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/Serialization/ASTWriter.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/clang/Serialization/ASTWriter.h b/include/clang/Serialization/ASTWriter.h index ca29517d81..27dccb0b72 100644 --- a/include/clang/Serialization/ASTWriter.h +++ b/include/clang/Serialization/ASTWriter.h @@ -95,6 +95,9 @@ private: /// \brief The ASTContext we're writing. ASTContext *Context; + /// \brief The preprocessor we're writing. + Preprocessor *PP; + /// \brief The reader of existing AST files, if we're chaining. ASTReader *Chain; @@ -385,6 +388,11 @@ private: void WriteHeaderSearch(const HeaderSearch &HS, StringRef isysroot); void WritePreprocessorDetail(PreprocessingRecord &PPRec); void WriteSubmodules(Module *WritingModule); + + /// \brief Infer the submodule ID that contains an entity at the given + /// source location. + serialization::SubmoduleID inferSubmoduleIDFromLocation(SourceLocation Loc); + void WritePragmaDiagnosticMappings(const DiagnosticsEngine &Diag); void WriteCXXBaseSpecifiersOffsets(); void WriteType(QualType T); |