[JITLink] Fix LinkGraph::makeAbsolute, add unit test.
authorLang Hames <lhames@gmail.com>
Sat, 20 Aug 2022 20:32:06 +0000 (13:32 -0700)
committerLang Hames <lhames@gmail.com>
Sat, 20 Aug 2022 20:43:21 +0000 (13:43 -0700)
commite0fc85e092199e9520f42b97663bd773d4a8b6bf
treeac260c94e759ff8ba78e7529a97d8d6430e5b071
parent00da9e9a07824aaba16ead2180ea9bb00bf14827
[JITLink] Fix LinkGraph::makeAbsolute, add unit test.

makeAbsolute was not updating the symbol address when applied to external
symbols.

This commit adds a unit test for makeAbsolute, and updates the makeExternal unit
test to check that makeExternal works correctly for absolute symbols.
llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
llvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp