Re-apply r196639: Add support for archives and object file caching under MCJIT.
authorLang Hames <lhames@gmail.com>
Wed, 8 Jan 2014 04:09:09 +0000 (04:09 +0000)
committerLang Hames <lhames@gmail.com>
Wed, 8 Jan 2014 04:09:09 +0000 (04:09 +0000)
commit42fdb1f00ffc5d0a0326f11cadaeec1c26691688
tree5294abeb5fb8c95d81ced305ed1a9d5d0ba7849b
parent0fe78d5669e37cf9c5b613ef56b4e5a2de975271
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
12 files changed:
include/llvm/ExecutionEngine/ExecutionEngine.h
include/llvm/ExecutionEngine/RuntimeDyld.h
lib/ExecutionEngine/MCJIT/MCJIT.cpp
lib/ExecutionEngine/MCJIT/MCJIT.h
lib/ExecutionEngine/RuntimeDyld/ObjectImageCommon.h
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h
tools/lli/lli.cpp