Remove commented out code

This commit is contained in:
bjorn3 2018-11-11 11:37:59 +01:00
parent f955c8ef2a
commit 29e1d617d4
2 changed files with 0 additions and 24 deletions

View file

@ -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,

View file

@ -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,