summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Debugger
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Debugger')
-rw-r--r--llvm/lib/Debugger/Debugger.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/Debugger/Debugger.cpp b/llvm/lib/Debugger/Debugger.cpp
index a0505bda578..613a19d2f3f 100644
--- a/llvm/lib/Debugger/Debugger.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud