[MCJIT] Add a 'decodeAddend' method to RuntimeDyldMachO and teach
authorLang Hames <lhames@gmail.com>
Sat, 19 Jul 2014 00:19:17 +0000 (00:19 +0000)
committerLang Hames <lhames@gmail.com>
Sat, 19 Jul 2014 00:19:17 +0000 (00:19 +0000)
commit3fda7d81c7bfe5bc61a9009156cbec2fed66aedc
treefedf34fd4dce8529457875975d65e33e7facfc75
parent1c3d95ebc5fec3ab73fbd300a4321e3213441d52
[MCJIT] Add a 'decodeAddend' method to RuntimeDyldMachO and teach
getBasicRelocationEntry to use this rather than 'memcpy' to get the
relocation addend. Targets with non-trivial addend encodings (E.g. AArch64) can
override decodeAddend to handle immediates with interesting encodings.

No functional change.

llvm-svn: 213435
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h