aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2025-02-24 17:14:58 +1100
committerLang Hames <lhames@gmail.com>2025-02-25 13:54:17 +1100
commit253e11695ba8d77e4339d0c43758f192b149db1e (patch)
treee73c1f2d08307dad74ff76e55e22a0e7cb23cf71 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent688064498a015e833bd24f5cd429462ca9126a54 (diff)
downloadllvm-253e11695ba8d77e4339d0c43758f192b149db1e.zip
llvm-253e11695ba8d77e4339d0c43758f192b149db1e.tar.gz
llvm-253e11695ba8d77e4339d0c43758f192b149db1e.tar.bz2
[ORC][llvm-jitlink] Add support for emulating ld64 -weak-lx / -weak_library.
Linking libraries in ld64 with -weak-lx / -weak_library causes all references to symbols in those libraries to be made weak, allowing the librarie to be missing at runtime. This patch extends EPCDynamicLibrarySearchGenerator with support for emulating this behavior: If an instance is constructed with an Allow predicate but no dylib handle then all symbols matching the predicate are immediately resolved to null. The llvm-jitlink tool is updated with -weak-lx / -weak_library options for testing. Unlike their ld64 counterparts these options take a TBD file as input, and always resolve all exports in the TBD file to null.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions