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
This commit is contained in:
Chris Lattner
2008-04-01 04:26:46 +00:00
parent 685412e92f
commit 7f6b447904
4 changed files with 36 additions and 49 deletions

View File

@ -24,7 +24,7 @@
#include <fstream>
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