diff options
author | Chris Lattner <sabre@nondot.org> | 2007-05-06 09:29:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-05-06 09:29:13 +0000 |
commit | 4bcca0f2ac85c918fc8617e34b7642e5e5233460 (patch) | |
tree | edde26d0727868dbdf64d84f457c084db5e9a250 /lib/Debugger | |
parent | c1d5624d71f7534cfc1bd51b76ead9cea99d3e8d (diff) | |
download | external_llvm-4bcca0f2ac85c918fc8617e34b7642e5e5233460.zip external_llvm-4bcca0f2ac85c918fc8617e34b7642e5e5233460.tar.gz external_llvm-4bcca0f2ac85c918fc8617e34b7642e5e5233460.tar.bz2 |
switch this to bitcode instead of bytecode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36867 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Debugger')
-rw-r--r-- | lib/Debugger/Debugger.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/lib/Debugger/Debugger.cpp b/lib/Debugger/Debugger.cpp index 90741af..a38bde7 100644 --- a/lib/Debugger/Debugger.cpp +++ b/lib/Debugger/Debugger.cpp @@ -14,7 +14,6 @@ #include "llvm/Debugger/Debugger.h" #include "llvm/Module.h" #include "llvm/ModuleProvider.h" -#include "llvm/Bytecode/Reader.h" #include "llvm/Bitcode/ReaderWriter.h" #include "llvm/Debugger/InferiorProcess.h" #include "llvm/Support/MemoryBuffer.h" @@ -22,8 +21,6 @@ #include <memory> using namespace llvm; -static bool Bitcode = false; - /// Debugger constructor - Initialize the debugger to its initial, empty, state. /// Debugger::Debugger() : Environment(0), Program(0), Process(0) { @@ -49,15 +46,11 @@ std::string Debugger::getProgramPath() const { static Module * getMaterializedModuleProvider(const std::string &Filename) { - if (Bitcode) { - return ParseBytecodeFile(Filename); - } else { - std::auto_ptr<MemoryBuffer> Buffer; - Buffer.reset(MemoryBuffer::getFileOrSTDIN(&Filename[0], Filename.size())); - if (Buffer.get()) - return ParseBitcodeFile(Buffer.get()); - return 0; - } + std::auto_ptr<MemoryBuffer> Buffer; + Buffer.reset(MemoryBuffer::getFileOrSTDIN(&Filename[0], Filename.size())); + if (Buffer.get()) + return ParseBitcodeFile(Buffer.get()); + return 0; } /// loadProgram - If a program is currently loaded, unload it. Then search |