diff options
author | Julian Lettner <julian.lettner@apple.com> | 2023-04-21 15:14:42 -0700 |
---|---|---|
committer | Julian Lettner <julian.lettner@apple.com> | 2023-04-25 12:13:40 -0700 |
commit | c3f0153ec27a5e2cff97179d319ab99651c4c539 (patch) | |
tree | ada3435c8b3d6dab5ea89772225b08f98150e61f /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp | |
parent | 09d879d060ed31b22a6e72f7f5e44fe9b5660aa3 (diff) | |
download | llvm-c3f0153ec27a5e2cff97179d319ab99651c4c539.zip llvm-c3f0153ec27a5e2cff97179d319ab99651c4c539.tar.gz llvm-c3f0153ec27a5e2cff97179d319ab99651c4c539.tar.bz2 |
[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
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions