[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)
commitf560928889fab9c3a5db9731d0fcca1c89dbdbb0
tree5fc0a21beae4618949f0d5204bc16f87da5e9a89
parentb13b52efe082438c73c1041771a231a52d22a9a0
[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>

llvm-svn: 213689
llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h
llvm/test/ExecutionEngine/RuntimeDyld/AArch64/MachO_ARM64_relocations.s [new file with mode: 0644]
llvm/test/ExecutionEngine/RuntimeDyld/AArch64/lit.local.cfg [new file with mode: 0644]