[JITLink][ELF] Log enum name of unsupported relocation type.
authorSunho Kim <ksunhokim123@gmail.com>
Wed, 15 Jun 2022 14:24:18 +0000 (23:24 +0900)
committerSunho Kim <ksunhokim123@gmail.com>
Wed, 15 Jun 2022 14:26:29 +0000 (23:26 +0900)
commit9fc0aa45e3312944431ba7e1ca0cec99c613992b
treeb63c032b98bbd0a1dbe00bcd8761b529d57c7be4
parente180cc5ff1a133c533e68bb92024d2455d5e6978
[JITLink][ELF] Log enum name of unsupported relocation type.

Logs enum name of unsupported relocation type. This also changes elf/x86 to use common util function (getELFRelocationTypeName) inside llvm object module.

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D127715
llvm/lib/ExecutionEngine/JITLink/ELF_aarch64.cpp
llvm/lib/ExecutionEngine/JITLink/ELF_riscv.cpp
llvm/lib/ExecutionEngine/JITLink/ELF_x86_64.cpp