From 42fdb1f00ffc5d0a0326f11cadaeec1c26691688 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Wed, 8 Jan 2014 04:09:09 +0000 Subject: Re-apply r196639: Add support for archives and object file caching under MCJIT. I believe the bot failures on linux systems were due to overestimating the alignment of object-files within archives, which are only guaranteed to be two-byte aligned. I have reduced the alignment in RuntimeDyldELF::createObjectImageFromFile accordingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198737 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp') diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp index 66ee50ebe9..d12e7e5e4d 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp @@ -455,4 +455,9 @@ bool RuntimeDyldMachO::isCompatibleFormat( return false; } +bool RuntimeDyldMachO::isCompatibleFile( + const object::ObjectFile *Obj) const { + return Obj->isMachO(); +} + } // end namespace llvm -- cgit v1.2.3