Skip to content

Commit 1a1cdac

Browse files
committed
Remove code that was moved from the backend to rustc_incremental
1 parent 2c41a69 commit 1a1cdac

File tree

3 files changed

+9
-23
lines changed

3 files changed

+9
-23
lines changed

src/driver/aot.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,6 @@ pub(super) fn run_aot(
281281
None
282282
};
283283

284-
rustc_incremental::assert_dep_graph(tcx);
285-
rustc_incremental::save_dep_graph(tcx);
286-
287284
let metadata_module = if need_metadata_module {
288285
let _timer = tcx.prof.generic_activity("codegen crate metadata");
289286
let (metadata_cgu_name, tmp_file) = tcx.sess.time("write compressed metadata", || {
@@ -322,10 +319,6 @@ pub(super) fn run_aot(
322319
None
323320
};
324321

325-
if tcx.sess.opts.output_types.should_codegen() {
326-
rustc_incremental::assert_module_sources::assert_module_sources(tcx);
327-
}
328-
329322
Box::new((
330323
CodegenResults {
331324
crate_name: tcx.crate_name(LOCAL_CRATE),

src/intrinsics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ pub(crate) fn codegen_intrinsic_call<'tcx>(
824824
}
825825
ty => unreachable!("bswap {}", ty),
826826
}
827-
};
827+
}
828828
let res = CValue::by_val(swap(&mut fx.bcx, arg), fx.layout_of(T));
829829
ret.write_cvalue(fx, res);
830830
};

src/lib.rs

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ extern crate rustc_incremental;
2727
extern crate rustc_index;
2828
extern crate rustc_session;
2929
extern crate rustc_span;
30-
extern crate rustc_symbol_mangling;
3130
extern crate rustc_target;
3231

3332
// This prevents duplicating functions and statics that are already part of the host rustc process.
@@ -257,8 +256,6 @@ impl CodegenBackend for CraneliftCodegenBackend {
257256
};
258257
let res = driver::codegen_crate(tcx, metadata, need_metadata_module, config);
259258

260-
rustc_symbol_mangling::test::report_symbol_names(tcx);
261-
262259
res
263260
}
264261

@@ -280,18 +277,14 @@ impl CodegenBackend for CraneliftCodegenBackend {
280277
) -> Result<(), ErrorReported> {
281278
use rustc_codegen_ssa::back::link::link_binary;
282279

283-
let _timer = sess.prof.generic_activity("link_crate");
284-
285-
sess.time("linking", || {
286-
let target_cpu = crate::target_triple(sess).to_string();
287-
link_binary::<crate::archive::ArArchiveBuilder<'_>>(
288-
sess,
289-
&codegen_results,
290-
outputs,
291-
&codegen_results.crate_name.as_str(),
292-
&target_cpu,
293-
);
294-
});
280+
let target_cpu = crate::target_triple(sess).to_string();
281+
link_binary::<crate::archive::ArArchiveBuilder<'_>>(
282+
sess,
283+
&codegen_results,
284+
outputs,
285+
&codegen_results.crate_name.as_str(),
286+
&target_cpu,
287+
);
295288

296289
Ok(())
297290
}

0 commit comments

Comments
 (0)