diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-03-23 19:51:34 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-03-23 19:51:34 +0000 |
commit | 8086f3b49429e02603270c8e09e2aabac9215a21 (patch) | |
tree | 63a2bd4f4a6154c578b2b1b5993038b52053c099 /lib/ExecutionEngine/MCJIT | |
parent | 01079311e153dae59a38aa0cdf5332eb3e410abf (diff) | |
download | external_llvm-8086f3b49429e02603270c8e09e2aabac9215a21.zip external_llvm-8086f3b49429e02603270c8e09e2aabac9215a21.tar.gz external_llvm-8086f3b49429e02603270c8e09e2aabac9215a21.tar.bz2 |
Make sure to report any errors from the runtime dyld.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128160 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/MCJIT')
-rw-r--r-- | lib/ExecutionEngine/MCJIT/MCJIT.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/MCJIT/MCJIT.cpp b/lib/ExecutionEngine/MCJIT/MCJIT.cpp index 854bd1f..faed7a6 100644 --- a/lib/ExecutionEngine/MCJIT/MCJIT.cpp +++ b/lib/ExecutionEngine/MCJIT/MCJIT.cpp @@ -90,7 +90,8 @@ MCJIT::MCJIT(Module *m, TargetMachine *tm, TargetJITInfo &tji, // FIXME: It would be nice to avoid making yet another copy. MemoryBuffer *MB = MemoryBuffer::getMemBufferCopy(StringRef(Buffer.data(), Buffer.size())); - Dyld.loadObject(MB); + if (Dyld.loadObject(MB)) + report_fatal_error(Dyld.getErrorString()); } MCJIT::~MCJIT() { |