diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-04-22 21:45:53 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-04-22 21:45:53 +0000 |
commit | 370187c8a3e96517c943329f2511737a04b85450 (patch) | |
tree | 941f4d6bbdd7017084f8ef5b3e4c97027ddbdb08 /include/clang/Basic/SourceManager.h | |
parent | 6cfc1a8b7582b8433b61222502effb018c534393 (diff) |
Remove the serialization code that predates precompiled
headers. Future approaches to (de-)serializing ASTs will be based on
the PCH infrastructure.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r-- | include/clang/Basic/SourceManager.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index e2c40a31c9..0b47df9ad9 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -15,7 +15,6 @@ #define LLVM_CLANG_SOURCEMANAGER_H #include "clang/Basic/SourceLocation.h" -#include "llvm/Bitcode/SerializationFwd.h" #include "llvm/Support/Allocator.h" #include "llvm/Support/DataTypes.h" #include "llvm/ADT/DenseMap.h" @@ -106,14 +105,6 @@ namespace SrcMgr { NumLines = RHS.NumLines; } - /// Emit - Emit this ContentCache to Bitcode. - void Emit(llvm::Serializer &S) const; - - /// ReadToSourceManager - Reconstitute a ContentCache from Bitcode - // and store it in the specified SourceManager. - static void ReadToSourceManager(llvm::Deserializer &D, SourceManager &SM, - FileManager *FMgr, std::vector<char> &Buf); - private: // Disable assignments. ContentCache &operator=(const ContentCache& RHS); @@ -610,13 +601,6 @@ public: /// void PrintStats() const; - /// Emit - Emit this SourceManager to Bitcode. - void Emit(llvm::Serializer& S) const; - - /// Read - Reconstitute a SourceManager from Bitcode. - static SourceManager* CreateAndRegister(llvm::Deserializer& S, - FileManager &FMgr); - // Iteration over the source location entry table. typedef std::vector<SrcMgr::SLocEntry>::const_iterator sloc_entry_iterator; @@ -638,8 +622,6 @@ public: unsigned getNextOffset() const { return NextOffset; } private: - friend class SrcMgr::ContentCache; // Used for deserialization. - /// isOffsetInFileID - Return true if the specified FileID contains the /// specified SourceLocation offset. This is a very hot method. inline bool isOffsetInFileID(FileID FID, unsigned SLocOffset) const { |