From 0b5a504d105514178c80b886321221fbe5ac1131 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 25 Aug 2006 17:43:11 +0000 Subject: For PR797: Remove exception throwing/handling from lib/Bytecode, and adjust its users to compensate for changes in the interface. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29875 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Debugger/Debugger.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'lib/Debugger/Debugger.cpp') 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 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 -- cgit v1.2.3-18-g5258