diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-05 05:46:00 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-05 05:46:00 +0000 |
commit | 4d1f38fb2671e565b7aaeb2dd0db79b16adc3349 (patch) | |
tree | 1c0d4e6d724650a827c16e2692b19bf643495e37 /lib/Module | |
parent | 601877c638420b1c32a0ea49a0ec43c952529bab (diff) | |
download | klee-4d1f38fb2671e565b7aaeb2dd0db79b16adc3349.tar.gz |
Remove some unnecessary uses of C++ exceptions.
- PR4264. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Module')
-rw-r--r-- | lib/Module/ModuleUtil.cpp | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/lib/Module/ModuleUtil.cpp b/lib/Module/ModuleUtil.cpp index d86b9d48..dae6ffc5 100644 --- a/lib/Module/ModuleUtil.cpp +++ b/lib/Module/ModuleUtil.cpp @@ -31,20 +31,16 @@ using namespace klee; Module *klee::linkWithLibrary(Module *module, const std::string &libraryName) { - try { - Linker linker("klee", module, false); + Linker linker("klee", module, false); - llvm::sys::Path libraryPath(libraryName); - bool native = false; + llvm::sys::Path libraryPath(libraryName); + bool native = false; - if (linker.LinkInFile(libraryPath, native)) { - assert(0 && "linking in library failed!"); - } - - return linker.releaseModule(); - } catch (...) { - assert(0 && "error during linking"); + if (linker.LinkInFile(libraryPath, native)) { + assert(0 && "linking in library failed!"); } + + return linker.releaseModule(); } Function *klee::getDirectCallTarget(const Instruction *i) { |