diff options
| author | Noratrieb <48135649+Noratrieb@users.noreply.github.com> | 2025-05-24 19:50:11 +0200 |
|---|---|---|
| committer | Noratrieb <48135649+Noratrieb@users.noreply.github.com> | 2025-05-24 20:31:37 +0200 |
| commit | fa2bb599bcf36b5390d5c8156cba6bc980ddbfca (patch) | |
| tree | 8bb73e707c9bae7d88428dc2d673a185d566b0ca /compiler/rustc_codegen_gcc | |
| parent | e88e85463468ce5d5ce468414eb69e3b15fa8d42 (diff) | |
| download | rust-fa2bb599bcf36b5390d5c8156cba6bc980ddbfca.tar.gz rust-fa2bb599bcf36b5390d5c8156cba6bc980ddbfca.zip | |
Cleanup CodegenFnAttrFlags
- Rename `USED` to `USED_COMPILER` to better reflect its behavior. - Reorder some items to group the used and allocator flags together - Renumber them without gaps
Diffstat (limited to 'compiler/rustc_codegen_gcc')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/consts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/consts.rs b/compiler/rustc_codegen_gcc/src/consts.rs index 033afc0f8fb..8aed04c836a 100644 --- a/compiler/rustc_codegen_gcc/src/consts.rs +++ b/compiler/rustc_codegen_gcc/src/consts.rs @@ -154,7 +154,7 @@ impl<'gcc, 'tcx> StaticCodegenMethods for CodegenCx<'gcc, 'tcx> { // TODO(antoyo): set link section. } - if attrs.flags.contains(CodegenFnAttrFlags::USED) + if attrs.flags.contains(CodegenFnAttrFlags::USED_COMPILER) || attrs.flags.contains(CodegenFnAttrFlags::USED_LINKER) { self.add_used_global(global.to_rvalue()); |
