File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use std::fmt::Write;
6
6
7
7
use rustc_ast:: ast:: { InlineAsmOptions , InlineAsmTemplatePiece } ;
8
8
use rustc_middle:: mir:: InlineAsmOperand ;
9
- use rustc_span:: Symbol ;
9
+ use rustc_span:: sym ;
10
10
use rustc_target:: asm:: * ;
11
11
12
12
pub ( crate ) fn codegen_inline_asm < ' tcx > (
@@ -184,7 +184,7 @@ impl<'tcx> InlineAssemblyGenerator<'_, 'tcx> {
184
184
let sess = self . tcx . sess ;
185
185
let map = allocatable_registers (
186
186
self . arch ,
187
- |feature| sess. target_features . contains ( & Symbol :: intern ( feature) ) ,
187
+ |feature| sess. target_features . contains ( & feature) ,
188
188
& sess. target ,
189
189
) ;
190
190
let mut allocated = FxHashMap :: < _ , ( bool , bool ) > :: default ( ) ;
@@ -319,9 +319,9 @@ impl<'tcx> InlineAssemblyGenerator<'_, 'tcx> {
319
319
// Allocate stack slots for saving clobbered registers
320
320
let abi_clobber = InlineAsmClobberAbi :: parse (
321
321
self . arch ,
322
- |feature| self . tcx . sess . target_features . contains ( & Symbol :: intern ( feature) ) ,
322
+ |feature| self . tcx . sess . target_features . contains ( & feature) ,
323
323
& self . tcx . sess . target ,
324
- Symbol :: intern ( "C" ) ,
324
+ sym :: C ,
325
325
)
326
326
. unwrap ( )
327
327
. clobbered_regs ( ) ;
You can’t perform that action at this time.
0 commit comments