diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-01 04:26:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-01 04:26:46 +0000 |
commit | 7f6b4479044e7f6553f517737caa18e4e543697c (patch) | |
tree | fcd5198a01f00522dead5657dd55d3546f9b64d4 /include | |
parent | 685412e92ff6ffba88adcbf158fb73335ab27d1e (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Bitcode/Archive.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 <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 |