diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-10-25 00:30:23 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-10-25 00:30:23 +0000 |
commit | 0ca6e27138e2fe12e03284d4d820182702141a7d (patch) | |
tree | 228f369f6ec71b8e7797ba83db08d29cc303a80f /include/clang/Serialization | |
parent | a9b8da43077a78f9ab223caf4889e6c6eba2c4a3 (diff) |
Remove the old predefines-buffer diffing code completely. It's been
replaced by the more efficient, cleaner preprocessor-option version
that occurs earlier in PCH validation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Serialization')
-rw-r--r-- | include/clang/Serialization/ASTReader.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/include/clang/Serialization/ASTReader.h b/include/clang/Serialization/ASTReader.h index fd4f05fc4a..36eae76728 100644 --- a/include/clang/Serialization/ASTReader.h +++ b/include/clang/Serialization/ASTReader.h @@ -86,15 +86,6 @@ struct HeaderFileInfo; class VersionTuple; class TargetOptions; -struct PCHPredefinesBlock { - /// \brief The file ID for this predefines buffer in a PCH file. - FileID BufferID; - - /// \brief This predefines buffer in a PCH file. - StringRef Data; -}; -typedef SmallVector<PCHPredefinesBlock, 2> PCHPredefinesBlocks; - /// \brief Abstract interface for callback invocations by the ASTReader. /// /// While reading an AST file, the ASTReader will call the methods of the @@ -163,27 +154,6 @@ public: return false; } - /// \brief Receives the contents of the predefines buffer. - /// - /// \param Buffers Information about the predefines buffers. - /// - /// \param OriginalFileName The original file name for the AST file, which - /// will appear as an entry in the predefines buffer. - /// - /// \param SuggestedPredefines If necessary, additional definitions are added - /// here. - /// - /// \param Complain Whether to complain about non-matching predefines buffers. - /// - /// \returns true to indicate the predefines are invalid or false otherwise. - virtual bool ReadPredefinesBuffer(const PCHPredefinesBlocks &Buffers, - StringRef OriginalFileName, - std::string &SuggestedPredefines, - FileManager &FileMgr, - bool Complain) { - return false; - } - /// \brief Receives a HeaderFileInfo entry. virtual void ReadHeaderFileInfo(const HeaderFileInfo &HFI, unsigned ID) {} @@ -211,11 +181,6 @@ public: virtual bool ReadPreprocessorOptions(const PreprocessorOptions &PPOpts, bool Complain, std::string &SuggestedPredefines); - virtual bool ReadPredefinesBuffer(const PCHPredefinesBlocks &Buffers, - StringRef OriginalFileName, - std::string &SuggestedPredefines, - FileManager &FileMgr, - bool Complain); virtual void ReadHeaderFileInfo(const HeaderFileInfo &HFI, unsigned ID); virtual void ReadCounter(const serialization::ModuleFile &M, unsigned Value); @@ -912,10 +877,6 @@ private: ~ReadingKindTracker() { Reader.ReadingKind = PrevKind; } }; - /// \brief All predefines buffers in the chain, to be treated as if - /// concatenated. - PCHPredefinesBlocks PCHPredefinesBuffers; - /// \brief Suggested contents of the predefines buffer, after this /// PCH file has been processed. /// @@ -949,7 +910,6 @@ private: llvm::SmallVectorImpl<ModuleFile *> &Loaded, unsigned ClientLoadCapabilities); bool ReadASTBlock(ModuleFile &F); - bool CheckPredefinesBuffers(bool Complain); bool ParseLineTable(ModuleFile &F, SmallVectorImpl<uint64_t> &Record); bool ReadSourceManagerBlock(ModuleFile &F); llvm::BitstreamCursor &SLocCursorForID(int ID); |