[JITLink][x86-64] Lift GOT, PLT table managers into x86_64.h; reuse for MachO.
authorLang Hames <lhames@gmail.com>
Tue, 19 Oct 2021 04:41:08 +0000 (21:41 -0700)
committerLang Hames <lhames@gmail.com>
Tue, 19 Oct 2021 04:47:24 +0000 (21:47 -0700)
commitcc3115cd1d35b7325d4f1d53f860048e32e82e43
tree02f95ca573f2c414816fcc55b1e6c9585600da15
parent39a1fcb9cf5930eb3931ed0f9b8ef2f50dae4aa5
[JITLink][x86-64] Lift GOT, PLT table managers into x86_64.h; reuse for MachO.

This lifts the global offset table and procedure linkage table builders out of
ELF_x86_64.h and into x86_64.h, renaming them with generic names
x86_64::GOTTableBuilder and x86_64::PLTTableBuilder. MachO_x86_64.cpp is updated
to use these classes instead of the older PerGraphGOTAndStubsBuilder tool.
llvm/include/llvm/ExecutionEngine/JITLink/TableManager.h
llvm/include/llvm/ExecutionEngine/JITLink/x86_64.h
llvm/lib/ExecutionEngine/JITLink/ELF_x86_64.cpp
llvm/lib/ExecutionEngine/JITLink/MachO_x86_64.cpp
llvm/lib/ExecutionEngine/JITLink/x86_64.cpp