about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/src
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-07-14 16:32:10 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-07-17 08:44:48 +1000
commitb52f9eb6cabeb681d91bcfca44507721b71314aa (patch)
treecf79c349200a0c7cabf99b7f3e149686e33ca6c0 /compiler/rustc_codegen_gcc/src
parentc4083faade32b16feb471ef082ce0b1e3fe94262 (diff)
downloadrust-b52f9eb6cabeb681d91bcfca44507721b71314aa.tar.gz
rust-b52f9eb6cabeb681d91bcfca44507721b71314aa.zip
Introduce `MonoItemData`.
It replaces `(Linkage, Visibility)`, making the code nicer. Plus the
next commit will add another field.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src')
-rw-r--r--compiler/rustc_codegen_gcc/src/base.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_gcc/src/base.rs b/compiler/rustc_codegen_gcc/src/base.rs
index dcd560b3dcd..9e614ca4ace 100644
--- a/compiler/rustc_codegen_gcc/src/base.rs
+++ b/compiler/rustc_codegen_gcc/src/base.rs
@@ -159,8 +159,8 @@ pub fn compile_codegen_unit(tcx: TyCtxt<'_>, cgu_name: Symbol, supports_128bit_i
             let cx = CodegenCx::new(&context, cgu, tcx, supports_128bit_integers);
 
             let mono_items = cgu.items_in_deterministic_order(tcx);
-            for &(mono_item, (linkage, visibility)) in &mono_items {
-                mono_item.predefine::<Builder<'_, '_, '_>>(&cx, linkage, visibility);
+            for &(mono_item, data) in &mono_items {
+                mono_item.predefine::<Builder<'_, '_, '_>>(&cx, data.linkage, data.visibility);
             }
 
             // ... and now that we have everything pre-defined, fill out those definitions.