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 | 54d19d42bb9b276b8b0b61d9bcd38ec94797138f (patch) | |
tree | fcd5198a01f00522dead5657dd55d3546f9b64d4 /include/llvm | |
parent | 7e0debc2a796a1662c0611d5c43e422c63c6a0dc (diff) | |
download | external_llvm-54d19d42bb9b276b8b0b61d9bcd38ec94797138f.zip external_llvm-54d19d42bb9b276b8b0b61d9bcd38ec94797138f.tar.gz external_llvm-54d19d42bb9b276b8b0b61d9bcd38ec94797138f.tar.bz2 |
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/llvm')
-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 5b98c08..1dcbe3a 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 |