about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorJubilee <workingjubilee@gmail.com>2025-01-04 07:57:35 -0800
committerGitHub <noreply@github.com>2025-01-04 07:57:35 -0800
commit030333a456b90386d29a2407ec08835e87da4184 (patch)
tree29cb22b57ca8b3a6b92b1bad2dba7386bcc2e785 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent6adcdc368ae1bfa6584e4af0034765cc1dc8e4ee (diff)
parentcf679e428136f7992e8c110b32365a0e0057154e (diff)
downloadrust-030333a456b90386d29a2407ec08835e87da4184.tar.gz
rust-030333a456b90386d29a2407ec08835e87da4184.zip
Rollup merge of #135088 - maurer:force-asm, r=nikic
Force code generation in assembly generation smoke-tests

In llvm/llvm-project@7b23f413d1f76532825e470b523e971818d453ca , `.text` started being suppressed from LLVM assembly in cases where it wasn't strictly necessary. Currently, the sample functions in these two tests are frequently decided to be IR-only functions, resulting in no code generation, so LLVM drops the `.text` directive.

Adding `#[no_mangle]` forces these tests back to their original intent - assembly code is generated, and so a `.text` directive is generated as well.

`@rustbot` label: +llvm-main
r? `@workingjubilee`

I'll attach a buildbot link once it finishes consuming this PR
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions