@@ -31,7 +31,6 @@ use rustc_span::{BytePos, InnerSpan, Pos, SpanData, SyntaxContext, sym};
3131use rustc_target:: spec:: { CodeModel , FloatAbi , RelocModel , SanitizerSet , SplitDebuginfo , TlsModel } ;
3232use tracing:: { debug, trace} ;
3333
34- use crate :: back:: command_line_args:: quote_command_line_args;
3534use crate :: back:: lto:: ThinBuffer ;
3635use crate :: back:: owned_target_machine:: OwnedTargetMachine ;
3736use crate :: back:: profiling:: {
@@ -253,19 +252,6 @@ pub(crate) fn target_machine_factory(
253252
254253 let use_emulated_tls = matches ! ( sess. tls_model( ) , TlsModel :: Emulated ) ;
255254
256- // Command-line information to be included in the target machine.
257- // This seems to only be used for embedding in PDB debuginfo files.
258- // FIXME(Zalathar): Maybe skip this for non-PDB targets?
259- let argv0 = std:: env:: current_exe ( )
260- . unwrap_or_default ( )
261- . into_os_string ( )
262- . into_string ( )
263- . unwrap_or_default ( ) ;
264- let command_line_args = quote_command_line_args ( & sess. expanded_args ) ;
265- // Self-profile counter for the number of bytes produced by command-line quoting.
266- // Values are summed, so the summary result is cumulative across all TM factories.
267- sess. prof . artifact_size ( "quoted_command_line_args" , "-" , command_line_args. len ( ) as u64 ) ;
268-
269255 let debuginfo_compression = sess. opts . debuginfo_compression . to_string ( ) ;
270256 match sess. opts . debuginfo_compression {
271257 rustc_session:: config:: DebugInfoCompression :: Zlib => {
@@ -326,8 +312,6 @@ pub(crate) fn target_machine_factory(
326312 & output_obj_file,
327313 & debuginfo_compression,
328314 use_emulated_tls,
329- & argv0,
330- & command_line_args,
331315 use_wasm_eh,
332316 )
333317 } )
0 commit comments