diff options
| author | Simonas Kazlauskas <git@kazlauskas.me> | 2019-02-20 22:27:00 +0200 |
|---|---|---|
| committer | Simonas Kazlauskas <git@kazlauskas.me> | 2019-03-27 04:03:42 +0200 |
| commit | 8d4afbe4136933b47082dd1efa9c1132a31dfb0d (patch) | |
| tree | 6d73dd5ad453677b17d88c4dccf1d4c7b1da27e2 /src/librustc_codegen_llvm/context.rs | |
| parent | 54479c624cc24bb852291d83e11cc19389dcb21b (diff) | |
| download | rust-8d4afbe4136933b47082dd1efa9c1132a31dfb0d.tar.gz rust-8d4afbe4136933b47082dd1efa9c1132a31dfb0d.zip | |
Use informational target machine for metadata
Since there is nothing to optimise there...
Diffstat (limited to 'src/librustc_codegen_llvm/context.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_codegen_llvm/context.rs b/src/librustc_codegen_llvm/context.rs index 23e3a8425d3..619304ad9af 100644 --- a/src/librustc_codegen_llvm/context.rs +++ b/src/librustc_codegen_llvm/context.rs @@ -154,7 +154,7 @@ pub unsafe fn create_module( // Ensure the data-layout values hardcoded remain the defaults. if sess.target.target.options.is_builtin { - let tm = crate::back::write::create_target_machine(tcx, false); + let tm = crate::back::write::create_informational_target_machine(&tcx.sess, false); llvm::LLVMRustSetDataLayoutFromTargetMachine(llmod, tm); llvm::LLVMRustDisposeTargetMachine(tm); |
