aboutsummaryrefslogtreecommitdiff
path: root/lib/Debugger/Debugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Debugger/Debugger.cpp')
-rw-r--r--lib/Debugger/Debugger.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/Debugger/Debugger.cpp b/lib/Debugger/Debugger.cpp
index a0505bda57..613a19d2f3 100644
--- a/lib/Debugger/Debugger.cpp
+++ b/lib/Debugger/Debugger.cpp
@@ -45,15 +45,7 @@ std::string Debugger::getProgramPath() const {
static Module *
getMaterializedModuleProvider(const std::string &Filename) {
- try {
- std::auto_ptr<ModuleProvider> Result(getBytecodeModuleProvider(Filename));
- if (!Result.get()) return 0;
-
- Result->materializeModule();
- return Result.release()->releaseModule();
- } catch (...) {
- return 0;
- }
+ return ParseBytecodeFile(Filename);
}
/// loadProgram - If a program is currently loaded, unload it. Then search