push bytecode decompressor out through APIs. Now the bytecode reader
[oota-llvm.git] / lib / Bytecode / Archive / Archive.cpp
index 3bbc49dbe2a84a905e9ace3f05ddc3eb701357e7..d299694383a0eb3d444b8919da921ff638d1cf4e 100644 (file)
@@ -138,10 +138,10 @@ bool ArchiveMember::replaceWith(const sys::Path& newFile, std::string* ErrMsg) {
 // Archive constructor - this is the only constructor that gets used for the
 // Archive class. Everything else (default,copy) is deprecated. This just
 // initializes and maps the file into memory, if requested.
-Archive::Archive(const sys::Path& filename)
+Archive::Archive(const sys::Path& filename, BCDecompressor_t *BCDC)
   : archPath(filename), members(), mapfile(0), base(0), symTab(), strtab(),
-    symTabSize(0), firstFileOffset(0), modules(), foreignST(0)
-{
+    symTabSize(0), firstFileOffset(0), modules(), foreignST(0)
+    Decompressor(BCDC) {
 }
 
 bool