diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-08-25 17:43:11 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-08-25 17:43:11 +0000 |
commit | 0b5a504d105514178c80b886321221fbe5ac1131 (patch) | |
tree | 069c7663f74040a5d323ab404e026b4c59a2a1a9 /lib/Debugger | |
parent | ac123227109303be313c3c4625b152246969e781 (diff) | |
download | external_llvm-0b5a504d105514178c80b886321221fbe5ac1131.zip external_llvm-0b5a504d105514178c80b886321221fbe5ac1131.tar.gz external_llvm-0b5a504d105514178c80b886321221fbe5ac1131.tar.bz2 |
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
Diffstat (limited to 'lib/Debugger')
-rw-r--r-- | lib/Debugger/Debugger.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/Debugger/Debugger.cpp b/lib/Debugger/Debugger.cpp index a0505bd..613a19d 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 |