Add 'set is_pic' to clif files

This commit is contained in:
bjorn3 2018-12-28 18:48:47 +01:00
parent b105534f97
commit bebaa83c4a

View File

@ -203,6 +203,7 @@ impl<'a, 'tcx: 'a, B: Backend + 'a> FunctionCx<'a, 'tcx, B> {
Ok(mut file) => {
let target_triple: ::target_lexicon::Triple = self.tcx.sess.target.target.llvm_target.parse().unwrap();
writeln!(file, "test compile").unwrap();
writeln!(file, "set is_pic");
writeln!(file, "target {}", target_triple).unwrap();
writeln!(file, "").unwrap();
file.write(clif.as_bytes()).unwrap();