[all-commits] [llvm/llvm-project] 8ce375: [lld-macho] Set FinalDefinitionInLinkageUnit on mo...
Jez Ng via All-commits
all-commits at lists.llvm.org
Tue Mar 15 17:25:22 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8ce3750ff62d68e7428a828530b9b6a8cc93e813
https://github.com/llvm/llvm-project/commit/8ce3750ff62d68e7428a828530b9b6a8cc93e813
Author: Jez Ng <jezng at fb.com>
Date: 2022-03-15 (Tue, 15 Mar 2022)
Changed paths:
M lld/MachO/LTO.cpp
A lld/test/MachO/lto-final-definition.ll
M lld/test/MachO/lto-internalize.ll
Log Message:
-----------
[lld-macho] Set FinalDefinitionInLinkageUnit on most LTO externs
Since Mach-O has a two-level namespace (unlike ELF), we can usually set
this property to true.
(I believe this setting is only available in the new LTO backend, so I
can't really use ld64 / libLTO's behavior as a reference here... I'm
just doing what I think is correct.)
See {D119294} for the work done to calculate the `interposable` used in
this diff.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D119506
More information about the All-commits
mailing list