mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
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
This commit is contained in:
parent
01079311e1
commit
8086f3b494
@ -90,7 +90,8 @@ MCJIT::MCJIT(Module *m, TargetMachine *tm, TargetJITInfo &tji,
|
|||||||
// FIXME: It would be nice to avoid making yet another copy.
|
// FIXME: It would be nice to avoid making yet another copy.
|
||||||
MemoryBuffer *MB = MemoryBuffer::getMemBufferCopy(StringRef(Buffer.data(),
|
MemoryBuffer *MB = MemoryBuffer::getMemBufferCopy(StringRef(Buffer.data(),
|
||||||
Buffer.size()));
|
Buffer.size()));
|
||||||
Dyld.loadObject(MB);
|
if (Dyld.loadObject(MB))
|
||||||
|
report_fatal_error(Dyld.getErrorString());
|
||||||
}
|
}
|
||||||
|
|
||||||
MCJIT::~MCJIT() {
|
MCJIT::~MCJIT() {
|
||||||
|
Loading…
Reference in New Issue
Block a user