about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2021-12-07 17:28:16 +0100
committerNikita Popov <npopov@redhat.com>2021-12-08 11:00:15 +0100
commit509dedccacbce22c291da3bf85468fcdb92303d4 (patch)
treed867d14e0b1f32b40633c2d96fef03842448671f /compiler/rustc_codegen_cranelift/src
parentc67497a5da33eb3167a33e938920ce04d2b883a5 (diff)
downloadrust-509dedccacbce22c291da3bf85468fcdb92303d4.tar.gz
rust-509dedccacbce22c291da3bf85468fcdb92303d4.zip
Use module inline assembly to embed bitcode
In LLVM 14, our current method of setting section flags to avoid
embedding the `.llvmbc` section into final compilation artifacts
will no longer work, see issue #90326. The upstream recommendation
is to instead embed the entire bitcode using module-level inline
assembly, which is what this change does.

I've kept the existing code for platforms where we do not need to
set section flags, but possibly we should always be using the
inline asm approach.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
0 files changed, 0 insertions, 0 deletions