[llvm-jitlink] Add -alias option, shorten "-define-abs" option to "-abs".
authorLang Hames <lhames@gmail.com>
Thu, 3 Feb 2022 06:46:49 +0000 (17:46 +1100)
committerLang Hames <lhames@gmail.com>
Thu, 3 Feb 2022 07:47:59 +0000 (18:47 +1100)
commit517a4844bf26da21b0c7454a9388500b62cd6106
treeee66a84ebd16eba9c164930904dfa8a75b8dccfc
parentf3a66ec0bdeeae37c5ec4e5ac04a72bc27711f61
[llvm-jitlink] Add -alias option, shorten "-define-abs" option to "-abs".

The -alias option can be used to define aliases within a JITDylib. The
immediate motivation is to simplify testing of ORC runtime functions using
existing testcases (e.g. by aliasing dlfcn functions to their ORC-runtime
counterparts, like -alias dlopen=__orc_rt_macho_dlopen). The option is likely
to be useful for testing in general.

The -define-abs option is shortened to -abs for consistency with -alias.
16 files changed:
llvm/test/ExecutionEngine/JITLink/AArch64/MachO_arm64_relocations.s
llvm/test/ExecutionEngine/JITLink/RISCV/ELF_abs_reloc.s
llvm/test/ExecutionEngine/JITLink/RISCV/ELF_branch.s
llvm/test/ExecutionEngine/JITLink/RISCV/ELF_pc_indirect.s
llvm/test/ExecutionEngine/JITLink/RISCV/ELF_riscv32_got_plt_reloc.s
llvm/test/ExecutionEngine/JITLink/RISCV/ELF_riscv64_got_plt_reloc.s
llvm/test/ExecutionEngine/JITLink/X86/ELF_ehframe_basic.s
llvm/test/ExecutionEngine/JITLink/X86/ELF_x86-64_got_plt_optimizations.s
llvm/test/ExecutionEngine/JITLink/X86/ELF_x86-64_small_pic_relocations.s
llvm/test/ExecutionEngine/JITLink/X86/ELF_x86_64_absolute_relocations.s
llvm/test/ExecutionEngine/JITLink/X86/LocalDependencyPropagation.s
llvm/test/ExecutionEngine/JITLink/X86/MachO_llvm_jitlink_alias_option.s [new file with mode: 0644]
llvm/test/ExecutionEngine/JITLink/X86/MachO_weak_references.s
llvm/test/ExecutionEngine/JITLink/X86/MachO_x86-64_ehframe.test
llvm/test/ExecutionEngine/JITLink/X86/MachO_x86-64_relocations.s
llvm/tools/llvm-jitlink/llvm-jitlink.cpp