The kernel and kext environment does 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
stray fatal_error?