[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)
commite8cfb5988ff42f7c03f1f722b8a8d018e978bcd0
treec82475be52cb848fcddb9c3840e61ddbf073a0ae
parentdb98ac6a729633e51d55aa830c22a864ab717b07
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213435 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.h