diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-06 09:32:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-06 09:32:02 +0000 |
commit | 744879ea01779a48f898a801c847677b0bfa824a (patch) | |
tree | 1602b46ba1a9012436d5bb3b17e1109080394cfd /tools/bugpoint/BugDriver.cpp | |
parent | 73a978a753f66003fb8959af40549ca18b612cd1 (diff) | |
download | llvm-744879ea01779a48f898a801c847677b0bfa824a.tar.gz llvm-744879ea01779a48f898a801c847677b0bfa824a.tar.bz2 llvm-744879ea01779a48f898a801c847677b0bfa824a.tar.xz |
switch tools to bitcode from bytecode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.cpp')
-rw-r--r-- | tools/bugpoint/BugDriver.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/tools/bugpoint/BugDriver.cpp b/tools/bugpoint/BugDriver.cpp index fe290805e4..00dfc32774 100644 --- a/tools/bugpoint/BugDriver.cpp +++ b/tools/bugpoint/BugDriver.cpp @@ -20,9 +20,7 @@ #include "llvm/Pass.h" #include "llvm/Assembly/Parser.h" #include "llvm/Bitcode/ReaderWriter.h" -#include "llvm/Bytecode/Reader.h" #include "llvm/Support/CommandLine.h" -#include "llvm/Support/Compressor.h" #include "llvm/Support/FileUtilities.h" #include "llvm/Support/MemoryBuffer.h" #include <iostream> @@ -75,16 +73,13 @@ BugDriver::BugDriver(const char *toolname, bool as_child, bool find_bugs, /// return it, or return null if not possible. /// Module *llvm::ParseInputFile(const std::string &InputFilename) { - ParseError Err; - Module *Result = ParseBytecodeFile(InputFilename, - Compressor::decompressToNewBuffer); - if (!Result) { - std::auto_ptr<MemoryBuffer> Buffer( - MemoryBuffer::getFileOrSTDIN(&InputFilename[0], InputFilename.size())); - if (Buffer.get()) - Result = ParseBitcodeFile(Buffer.get()); - } + std::auto_ptr<MemoryBuffer> Buffer( + MemoryBuffer::getFileOrSTDIN(&InputFilename[0], InputFilename.size())); + Module *Result = 0; + if (Buffer.get()) + Result = ParseBitcodeFile(Buffer.get()); + ParseError Err; if (!Result && !(Result = ParseAssemblyFile(InputFilename,&Err))) { std::cerr << "bugpoint: " << Err.getMessage() << "\n"; Result = 0; |