Convert the rest of rustc::lib::llvm to istrs. Issue #855

This commit is contained in:
Brian Anderson 2011-08-26 16:33:30 -07:00
parent d7fa75413f
commit fcdbdaf2ab
4 changed files with 50 additions and 49 deletions

View file

@ -91,7 +91,7 @@ mod write {
if opts.time_llvm_passes { llvm::LLVMRustEnableTimePasses(); }
link_intrinsics(sess, llmod);
let pm = mk_pass_manager();
let td = mk_target_data(istr::to_estr(x86::get_data_layout()));
let td = mk_target_data(x86::get_data_layout());
llvm::LLVMAddTargetData(td.lltd, pm.llpm);
// TODO: run the linter here also, once there are llvm-c bindings for
// it.