diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-07 19:49:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-07 19:49:01 +0000 |
commit | 41f5c64ae1b767a257388c3b58bfcecb7f17be0a (patch) | |
tree | 01724a79b62a260b94db2467fb347bd60d993495 /llvm/lib/Bytecode/Reader/Reader.cpp | |
parent | 4d06ace0ef0053ea2b33ca93a2109131d29a2a33 (diff) | |
download | bcm5719-llvm-41f5c64ae1b767a257388c3b58bfcecb7f17be0a.tar.gz bcm5719-llvm-41f5c64ae1b767a257388c3b58bfcecb7f17be0a.zip |
Move compressor out of the core Reader.cpp file.
llvm-svn: 34007
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Reader/Reader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index 8d0f86fcaa5..1ba79915e72 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/lib/Bytecode/Reader/Reader.cpp @@ -27,7 +27,6 @@ #include "llvm/Bytecode/Format.h" #include "llvm/Config/alloca.h" #include "llvm/Support/GetElementPtrTypeIterator.h" -#include "llvm/Support/Compressor.h" #include "llvm/Support/MathExtras.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringExtras.h" @@ -1982,6 +1981,7 @@ void BytecodeReader::ParseModule() { /// and \p Length parameters. bool BytecodeReader::ParseBytecode(volatile BufPtr Buf, unsigned Length, const std::string &ModuleID, + Decompressor_t *Decompressor, std::string* ErrMsg) { /// We handle errors by @@ -2021,8 +2021,8 @@ bool BytecodeReader::ParseBytecode(volatile BufPtr Buf, unsigned Length, // file's magic number which is not part of the compressed block. Hence, // the Buf+4 and Length-4. The result goes into decompressedBlock, a data // member for retention until BytecodeReader is destructed. - unsigned decompressedLength = Compressor::decompressToNewBuffer( - (char*)Buf+4,Length-4,decompressedBlock); + unsigned decompressedLength = + Decompressor((char*)Buf+4,Length-4,decompressedBlock, 0); // We must adjust the buffer pointers used by the bytecode reader to point // into the new decompressed block. After decompression, the |