mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user