[RuntimeDyld][MachO] Fix assertion in encodeAddend, add missing directive to
authorLang Hames <lhames@gmail.com>
Thu, 1 Mar 2018 01:44:33 +0000 (01:44 +0000)
committerLang Hames <lhames@gmail.com>
Thu, 1 Mar 2018 01:44:33 +0000 (01:44 +0000)
commit811343cfd8bb8dfbd4756bed3f3ecda2cf407fad
tree5cb71a39185b907294a2c6a15ba93761e5cef5e8
parent4579bad86c68e664282618339cd2ea1ae17686ad
[RuntimeDyld][MachO] Fix assertion in encodeAddend, add missing directive to
test case.

r326290 fixed the assertion for decodeAddend, but not encodeAddend. The
regression test failed to catch this because it was missing the
subsections_via_symbols flag, so the desired relocation was not applied.

This patch also fixes the formatting of the assertion from r326290.

llvm-svn: 326406
llvm/lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h
llvm/test/ExecutionEngine/RuntimeDyld/AArch64/MachO_ARM64_relocations.s