[cfe-commits] r44585 - in /cfe/trunk: Basic/FileManager.cpp include/clang/Basic/FileManager.h
Ted Kremenek
kremenek at apple.com
Tue Dec 4 14:42:21 PST 2007
Author: kremenek
Date: Tue Dec 4 16:42:20 2007
New Revision: 44585
URL: http://llvm.org/viewvc/llvm-project?rev=44585&view=rev
Log:
Removed serialization of FileEntry and DirectoryEntry. This objects will
now be lazily recreated upon deserialization.
Modified:
cfe/trunk/Basic/FileManager.cpp
cfe/trunk/include/clang/Basic/FileManager.h
Modified: cfe/trunk/Basic/FileManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Basic/FileManager.cpp?rev=44585&r1=44584&r2=44585&view=diff
==============================================================================
--- cfe/trunk/Basic/FileManager.cpp (original)
+++ cfe/trunk/Basic/FileManager.cpp Tue Dec 4 16:42:20 2007
@@ -1,4 +1,4 @@
-//===--- FileManager.cpp - File System Probing and Caching ----------------===//
+///===--- FileManager.cpp - File System Probing and Caching ----------------===//
//
// The LLVM Compiler Infrastructure
//
@@ -172,34 +172,3 @@
//std::cerr << PagesMapped << BytesOfPagesMapped << FSLookups;
}
-
-//===----------------------------------------------------------------------===//
-// Serialization.
-//===----------------------------------------------------------------------===//
-
-void DirectoryEntry::Emit(llvm::Serializer& S) const {
- S.EmitCStr(Name);
-}
-
-void DirectoryEntry::Read(llvm::Deserializer& D) {
- Name = D.ReadCStr();
-}
-
-void FileEntry::Emit(llvm::Serializer& S) const {
- S.FlushRecord();
- S.EmitInt(Size);
- S.EmitInt(ModTime);
- S.EmitInt(UID);
- S.EmitPtr(Dir);
- S.EmitCStr(Name);
-}
-
-void FileEntry::Read(llvm::Deserializer& D) {
- Size = (off_t) D.ReadInt();
- ModTime = (time_t) D.ReadInt();
- D.ReadPtr<DirectoryEntry>(const_cast<DirectoryEntry*&>(Dir));
- Name = D.ReadCStr();
-}
-
-
-
Modified: cfe/trunk/include/clang/Basic/FileManager.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/FileManager.h?rev=44585&r1=44584&r2=44585&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/FileManager.h (original)
+++ cfe/trunk/include/clang/Basic/FileManager.h Tue Dec 4 16:42:20 2007
@@ -31,13 +31,7 @@
friend class FileManager;
public:
DirectoryEntry() : Name(0) {}
- const char *getName() const { return Name; }
-
- /// Emit - Emit this DirectoryEntry to Bitcode.
- void Emit(llvm::Serializer& S) const;
-
- /// Create - Reconsitute a DirectoryEntry object from Bitcode.
- void Read(llvm::Deserializer& D);
+ const char *getName() const { return Name; }
};
/// FileEntry - Cached information about one file on the disk.
@@ -60,13 +54,6 @@
/// getDir - Return the directory the file lives in.
///
const DirectoryEntry *getDir() const { return Dir; }
-
-
- /// Emit - Emit this FileEntry to Bitcode.
- void Emit(llvm::Serializer& S) const;
-
- /// Read - Reconsitute a FileEntry object from Bitcode.
- void Read(llvm::Deserializer& D);
};
More information about the cfe-commits
mailing list