aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2021-01-26 23:56:01 +1100
committerLang Hames <lhames@gmail.com>2021-01-27 00:09:40 +1100
commit4dc110a4b83c625502092b127ca0e9eb13824297 (patch)
tree3adb3d64d1ea5acff08800a321039c22aa8695c5 /llvm/lib/Transforms/Utils/LoopUtils.cpp
parente878589098c2ed510159e67d9c6c5e0f3dfbf5a6 (diff)
downloadllvm-4dc110a4b83c625502092b127ca0e9eb13824297.zip
llvm-4dc110a4b83c625502092b127ca0e9eb13824297.tar.gz
llvm-4dc110a4b83c625502092b127ca0e9eb13824297.tar.bz2
[ORC] Attempt to auto-claim responsibility for weak defs in ObjectLinkingLayer.
Compilers may insert new definitions during compilation, E.g. EH personality function pointers, or named constant pool entries. This commit causes ObjectLinkingLayer to attempt to claim responsibility for all weak definitions in objects as they're linked. This is always safe (first claimant for each symbol is granted responsibility, subsequent claims are rejected without error) and prevents compiler-injected symbols from being dead-stripped (which they will be if they remain unclaimed by anyone). This change was motivated by errors seen by an out-of-tree client while testing eh-frame support in JITLink ELF/x86-64: IR containing exceptions didn't define DW.ref.__gxx_personality_v0 (since it's added by CodeGen), and this caused DW.ref.__gxx_personality_v0 to be dead-stripped leading to linker failures. No test case yet: We won't have a way to test in-tree until we enable JITLink for lli on Linux.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions