diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-08-13 00:28:03 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-08-13 00:28:03 +0000 |
commit | 0b17c61e8f143901ce11b4a6e5129ac63aaeee04 (patch) | |
tree | b9b1cfd1fc9c8bbdcf8c5ddc456e0811f3d62dd6 /include/clang/Frontend/PCHBitCodes.h | |
parent | 8404f670f5bda1efb60076c701613b86b576533d (diff) |
Instead of modifying the ObjC AST to not modify existing declarations, teach chained PCH to overwrite declarations from earlier PCH files in dependent ones. Tell Sema to note when it changes AST nodes so that they have to be reserialized. Finally, the ObjCProtocolDecls created in forward decls, like the ObjCInterfaceDecls in @class forward decls, are not lexically part of the decl context; only the definition is.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110989 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/PCHBitCodes.h')
-rw-r--r-- | include/clang/Frontend/PCHBitCodes.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/clang/Frontend/PCHBitCodes.h b/include/clang/Frontend/PCHBitCodes.h index 7605670f0e..bce5c287e7 100644 --- a/include/clang/Frontend/PCHBitCodes.h +++ b/include/clang/Frontend/PCHBitCodes.h @@ -256,7 +256,14 @@ namespace clang { WEAK_UNDECLARED_IDENTIFIERS = 31, /// \brief Record code for pending implicit instantiations. - PENDING_IMPLICIT_INSTANTIATIONS = 32 + PENDING_IMPLICIT_INSTANTIATIONS = 32, + + /// \brief Record code for a decl replacement block. + /// + /// If a declaration is modified after having been deserialized, and then + /// written to a dependent PCH file, its ID and offset must be added to + /// the replacement block. + DECL_REPLACEMENTS = 33 }; /// \brief Record types used within a source manager block. |