diff options
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/Frontend/PCHBitCodes.h | 6 | ||||
-rw-r--r-- | include/clang/Frontend/PCHReader.h | 4 | ||||
-rw-r--r-- | include/clang/Frontend/PCHWriter.h | 1 |
3 files changed, 9 insertions, 2 deletions
diff --git a/include/clang/Frontend/PCHBitCodes.h b/include/clang/Frontend/PCHBitCodes.h index 25d3f09127..0a51961413 100644 --- a/include/clang/Frontend/PCHBitCodes.h +++ b/include/clang/Frontend/PCHBitCodes.h @@ -236,8 +236,10 @@ namespace clang { /// \brief Record code for the chained PCH metadata, including the /// PCH version and the name of the PCH this is chained to. - CHAINED_METADATA = 26 - + CHAINED_METADATA = 26, + + /// \brief Record code for referenced selector pool. + REFERENCED_SELECTOR_POOL = 27 }; /// \brief Record types used within a source manager block. diff --git a/include/clang/Frontend/PCHReader.h b/include/clang/Frontend/PCHReader.h index 8e2e3cafa6..17a733ce30 100644 --- a/include/clang/Frontend/PCHReader.h +++ b/include/clang/Frontend/PCHReader.h @@ -281,6 +281,10 @@ private: /// \brief The number of preallocated preprocessing entities in the /// preprocessing record. unsigned NumPreallocatedPreprocessingEntities; + + /// \brief Method selectors used in a @selector expression. Used for + /// implementation of -Wselector. + llvm::SmallVector<long long unsigned int,64u> ReferencedSelectorsData; }; /// \brief The chain of PCH files. The first entry is the one named by the diff --git a/include/clang/Frontend/PCHWriter.h b/include/clang/Frontend/PCHWriter.h index f2f3ed4a91..ab6c6ef8c6 100644 --- a/include/clang/Frontend/PCHWriter.h +++ b/include/clang/Frontend/PCHWriter.h @@ -242,6 +242,7 @@ private: uint64_t WriteDeclContextVisibleBlock(ASTContext &Context, DeclContext *DC); void WriteTypeDeclOffsets(); void WriteMethodPool(Sema &SemaRef); + void WriteReferencedSelectorsPool(Sema &SemaRef); void WriteIdentifierTable(Preprocessor &PP); void WriteAttributeRecord(const Attr *Attr); |