From 7f6b4479044e7f6553f517737caa18e4e543697c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 1 Apr 2008 04:26:46 +0000 Subject: change the archive stuff to use MemoryBuffer instead of mappedfile. MemoryBuffer is higher level and more closely matches the model needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49029 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Bitcode/Archive.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/llvm/Bitcode') diff --git a/include/llvm/Bitcode/Archive.h b/include/llvm/Bitcode/Archive.h index 5b98c086be..1dcbe3abe2 100644 --- a/include/llvm/Bitcode/Archive.h +++ b/include/llvm/Bitcode/Archive.h @@ -24,7 +24,7 @@ #include namespace llvm { - namespace sys { class MappedFile; } + class MemoryBuffer; // Forward declare classes class ModuleProvider; // From VMCore @@ -534,7 +534,7 @@ class Archive { protected: sys::Path archPath; ///< Path to the archive file we read/write MembersList members; ///< The ilist of ArchiveMember - sys::MappedFile* mapfile; ///< Raw Archive contents mapped into memory + MemoryBuffer *mapfile; ///< Raw Archive contents mapped into memory const char* base; ///< Base of the memory mapped file data SymTabType symTab; ///< The symbol table std::string strtab; ///< The string table for long file names -- cgit v1.2.3