diff options
| author | bors <bors@rust-lang.org> | 2022-01-18 14:32:52 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-01-18 14:32:52 +0000 |
| commit | 9ad5d82f822b3cb67637f11be2e65c5662b66ec0 (patch) | |
| tree | 894a32b8d9f1e82db836f49c5e89b11416532dfc /compiler/rustc_target/src/asm/powerpc.rs | |
| parent | 7bc7be860f99f4a40d45b0f74e2d01b02e072357 (diff) | |
| parent | 9336fe33d73c1115df3d60944dd8877b8eac00a2 (diff) | |
| download | rust-9ad5d82f822b3cb67637f11be2e65c5662b66ec0.tar.gz rust-9ad5d82f822b3cb67637f11be2e65c5662b66ec0.zip | |
Auto merge of #92731 - bjorn3:asm_support_changes, r=nagisa
Avoid unnecessary monomorphization of inline asm related functions This should reduce build time for codegen backends by avoiding duplicated monomorphization of certain inline asm related functions for each passed in closure type.
Diffstat (limited to 'compiler/rustc_target/src/asm/powerpc.rs')
| -rw-r--r-- | compiler/rustc_target/src/asm/powerpc.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/asm/powerpc.rs b/compiler/rustc_target/src/asm/powerpc.rs index 51a4303689e..d3ccb30350a 100644 --- a/compiler/rustc_target/src/asm/powerpc.rs +++ b/compiler/rustc_target/src/asm/powerpc.rs @@ -1,5 +1,6 @@ use super::{InlineAsmArch, InlineAsmType}; use rustc_macros::HashStable_Generic; +use rustc_span::Symbol; use std::fmt; def_reg_class! { @@ -36,7 +37,7 @@ impl PowerPCInlineAsmRegClass { pub fn supported_types( self, arch: InlineAsmArch, - ) -> &'static [(InlineAsmType, Option<&'static str>)] { + ) -> &'static [(InlineAsmType, Option<Symbol>)] { match self { Self::reg | Self::reg_nonzero => { if arch == InlineAsmArch::PowerPC { |
