@@ -33,9 +33,9 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
33
33
let ( begin, end) = crate :: mir:: naked_asm:: prefix_and_suffix ( cx. tcx ( ) , instance, item_data) ;
34
34
35
35
let mut template_vec = Vec :: new ( ) ;
36
- template_vec. push ( rustc_ast:: ast:: InlineAsmTemplatePiece :: String ( begin) ) ;
36
+ template_vec. push ( rustc_ast:: ast:: InlineAsmTemplatePiece :: String ( begin. into ( ) ) ) ;
37
37
template_vec. extend ( template. iter ( ) . cloned ( ) ) ;
38
- template_vec. push ( rustc_ast:: ast:: InlineAsmTemplatePiece :: String ( end) ) ;
38
+ template_vec. push ( rustc_ast:: ast:: InlineAsmTemplatePiece :: String ( end. into ( ) ) ) ;
39
39
40
40
cx. codegen_global_asm ( & template_vec, & operands, options, line_spans) ;
41
41
}
@@ -178,9 +178,6 @@ fn prefix_and_suffix<'tcx>(
178
178
writeln ! ( begin, ".hidden {asm_name}" ) . unwrap ( ) ;
179
179
}
180
180
writeln ! ( begin, ".type {asm_name}, {function}" ) . unwrap ( ) ;
181
- if let Some ( instruction_set) = attrs. instruction_set {
182
- writeln ! ( begin, "{}" , instruction_set. as_str( ) ) . unwrap ( ) ;
183
- }
184
181
if !arch_prefix. is_empty ( ) {
185
182
writeln ! ( begin, "{}" , arch_prefix) . unwrap ( ) ;
186
183
}
@@ -203,9 +200,6 @@ fn prefix_and_suffix<'tcx>(
203
200
if let Visibility :: Hidden = item_data. visibility {
204
201
writeln ! ( begin, ".private_extern {asm_name}" ) . unwrap ( ) ;
205
202
}
206
- if let Some ( instruction_set) = attrs. instruction_set {
207
- writeln ! ( begin, "{}" , instruction_set. as_str( ) ) . unwrap ( ) ;
208
- }
209
203
writeln ! ( begin, "{asm_name}:" ) . unwrap ( ) ;
210
204
211
205
writeln ! ( end) . unwrap ( ) ;
@@ -225,9 +219,6 @@ fn prefix_and_suffix<'tcx>(
225
219
writeln ! ( begin, ".scl 2" ) . unwrap ( ) ;
226
220
writeln ! ( begin, ".type 32" ) . unwrap ( ) ;
227
221
writeln ! ( begin, ".endef {asm_name}" ) . unwrap ( ) ;
228
- if let Some ( instruction_set) = attrs. instruction_set {
229
- writeln ! ( begin, "{}" , instruction_set. as_str( ) ) . unwrap ( ) ;
230
- }
231
222
writeln ! ( begin, "{asm_name}:" ) . unwrap ( ) ;
232
223
233
224
writeln ! ( end) . unwrap ( ) ;
0 commit comments