Remove commented out code
This commit is contained in:
parent
f955c8ef2a
commit
29e1d617d4
2 changed files with 0 additions and 24 deletions
10
src/lib.rs
10
src/lib.rs
|
@ -404,16 +404,6 @@ impl CodegenBackend for CraneliftCodegenBackend {
|
||||||
let obj = artifact.emit().unwrap();
|
let obj = artifact.emit().unwrap();
|
||||||
std::fs::write(&tmp_file, obj).unwrap();
|
std::fs::write(&tmp_file, obj).unwrap();
|
||||||
|
|
||||||
/*use rustc_mir::monomorphize::partitioning::CodegenUnitExt;
|
|
||||||
|
|
||||||
let dep_node = tcx.codegen_unit(cgu_name).codegen_dep_node(tcx);
|
|
||||||
let ((stats, module), _) = tcx.dep_graph.with_task(
|
|
||||||
dep_node,
|
|
||||||
tcx,
|
|
||||||
cgu_name,
|
|
||||||
module_codegen,
|
|
||||||
);*/
|
|
||||||
|
|
||||||
return Box::new(CodegenResults {
|
return Box::new(CodegenResults {
|
||||||
artifact,
|
artifact,
|
||||||
metadata: metadata.raw_data,
|
metadata: metadata.raw_data,
|
||||||
|
|
14
src/link.rs
14
src/link.rs
|
@ -253,20 +253,6 @@ pub(crate) fn link_bin(sess: &Session, codegen_results: &CodegenResults, out_fil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
res.artifact
|
|
||||||
.declare_with(
|
|
||||||
&metadata_name,
|
|
||||||
faerie::artifact::Decl::Data {
|
|
||||||
global: true,
|
|
||||||
writable: false,
|
|
||||||
},
|
|
||||||
res.metadata.clone(),
|
|
||||||
)
|
|
||||||
.unwrap();
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
fn link_args(cmd: &mut dyn Linker,
|
fn link_args(cmd: &mut dyn Linker,
|
||||||
flavor: LinkerFlavor,
|
flavor: LinkerFlavor,
|
||||||
sess: &Session,
|
sess: &Session,
|
||||||
|
|
Loading…
Reference in a new issue