[llvm-commits] CVS: llvm/lib/Debugger/Debugger.cpp
Chris Lattner
sabre at nondot.org
Sun May 6 02:29:16 PDT 2007
Changes in directory llvm/lib/Debugger:
Debugger.cpp updated: 1.8 -> 1.9
---
Log message:
switch this to bitcode instead of bytecode
---
Diffs of the changes: (+5 -12)
Debugger.cpp | 17 +++++------------
1 files changed, 5 insertions(+), 12 deletions(-)
Index: llvm/lib/Debugger/Debugger.cpp
diff -u llvm/lib/Debugger/Debugger.cpp:1.8 llvm/lib/Debugger/Debugger.cpp:1.9
--- llvm/lib/Debugger/Debugger.cpp:1.8 Sun May 6 00:18:53 2007
+++ llvm/lib/Debugger/Debugger.cpp Sun May 6 04:28:56 2007
@@ -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 @@
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
More information about the llvm-commits
mailing list