summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JITLink/MachO.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2019-10-10 23:37:51 +0000
committerLang Hames <lhames@gmail.com>2019-10-10 23:37:51 +0000
commit3cc04f6a41c60000bbf6c3ae767cf5ef8fe20c81 (patch)
treeae85485954028fa33bbc31a071e68ffe4edfa278 /llvm/lib/ExecutionEngine/JITLink/MachO.cpp
parent96cd736c2df461a7524b3c7f3e756bd2691263ed (diff)
downloadbcm5719-llvm-3cc04f6a41c60000bbf6c3ae767cf5ef8fe20c81.tar.gz
bcm5719-llvm-3cc04f6a41c60000bbf6c3ae767cf5ef8fe20c81.zip
[JITLink] Add an initial implementation of JITLink for MachO/AArch64.
This implementation has support for all relocation types except TLV. Compact unwind sections are not yet supported, so exceptions/unwinding will not work. llvm-svn: 374476
Diffstat (limited to 'llvm/lib/ExecutionEngine/JITLink/MachO.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/JITLink/MachO.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/JITLink/MachO.cpp b/llvm/lib/ExecutionEngine/JITLink/MachO.cpp
index 15995b8ce98..58bc0f56e15 100644
--- a/llvm/lib/ExecutionEngine/JITLink/MachO.cpp
+++ b/llvm/lib/ExecutionEngine/JITLink/MachO.cpp
@@ -14,6 +14,7 @@
#include "llvm/ExecutionEngine/JITLink/MachO.h"
#include "llvm/BinaryFormat/MachO.h"
+#include "llvm/ExecutionEngine/JITLink/MachO_arm64.h"
#include "llvm/ExecutionEngine/JITLink/MachO_x86_64.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/Format.h"
@@ -64,6 +65,8 @@ void jitLink_MachO(std::unique_ptr<JITLinkContext> Ctx) {
});
switch (Header.cputype) {
+ case MachO::CPU_TYPE_ARM64:
+ return jitLink_MachO_arm64(std::move(Ctx));
case MachO::CPU_TYPE_X86_64:
return jitLink_MachO_x86_64(std::move(Ctx));
}
OpenPOWER on IntegriCloud