[RuntimeDyld][MachO][AArch64] Add a helper function for encoding addends in instructions.
authorJuergen Ributzka <juergen@apple.com>
Tue, 22 Jul 2014 21:42:55 +0000 (21:42 +0000)
committerJuergen Ributzka <juergen@apple.com>
Tue, 22 Jul 2014 21:42:55 +0000 (21:42 +0000)
commit04e8cc79cd3b9bb6d30ae32c36204d1fbd133b1e
treeee8c016878fc1ef9d04af6bb15b1d5e67dfb6d9f
parent6f2f090b0643b0a1500bdfa5bebf7ead83f8a82b
[RuntimeDyld][MachO][AArch64] Add a helper function for encoding addends in instructions.

Factor out the addend encoding into a helper function and simplify the
processRelocationRef.

Also add a few simple rtdyld tests. More tests to come once GOTs can be tested too.

Related to <rdar://problem/17768539>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213689 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h
test/ExecutionEngine/RuntimeDyld/AArch64/MachO_ARM64_relocations.s [new file with mode: 0644]
test/ExecutionEngine/RuntimeDyld/AArch64/lit.local.cfg [new file with mode: 0644]