Julian Lettner c3f0153ec2 [MachO] Disable atexit()-based lowering when LTO'ing kernel/kext code
The kernel and kext environments do not provide the `__cxa_atexit()`
function, so we can't use it for lowering global module destructors.

Unfortunately, just querying for "compiling for kernel/kext?" in the LTO
pipeline isn't possible (kernel/kext identifier isn't part of the triple
yet) so we need to pass down a CodeGen flag.

rdar://93536111

Differential Revision: https://reviews.llvm.org/D148967
2023-04-25 12:13:40 -07:00
..
2022-09-26 11:31:23 +01:00
2022-10-02 11:51:08 +01:00
2021-11-21 18:33:29 +00:00
2022-11-02 22:34:05 +00:00
2022-10-28 22:28:37 -07:00