about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2020-11-08 14:01:23 +0000
committerDavid Wood <david@davidtw.co>2020-12-16 10:33:48 +0000
commit5f6c32af159c427fedb6fd25dfd9b6933affe068 (patch)
treee520be13097227c58ac5af2cb02050d8ae36a4bf /src
parentaec0fc58ad5f72055a76a49d14edc4538bc87679 (diff)
downloadrust-5f6c32af159c427fedb6fd25dfd9b6933affe068.tar.gz
rust-5f6c32af159c427fedb6fd25dfd9b6933affe068.zip
cg_clif: fix build with split dwarf
This commit makes minor changes to the cranelift backend so that it can
build given changes in cg_ssa for Split DWARF.

Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'src')
-rw-r--r--src/driver/aot.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/driver/aot.rs b/src/driver/aot.rs
index 491d6cbbf79..78d6ff0cb00 100644
--- a/src/driver/aot.rs
+++ b/src/driver/aot.rs
@@ -75,6 +75,7 @@ fn emit_module(
             name,
             kind,
             object: Some(tmp_file),
+            dwarf_object: None,
             bytecode: None,
         },
         work_product,
@@ -111,6 +112,7 @@ fn reuse_workproduct_for_cgu(
         name: cgu.name().to_string(),
         kind: ModuleKind::Regular,
         object,
+        dwarf_object: None,
         bytecode: None,
     }
 }
@@ -290,6 +292,7 @@ pub(super) fn run_aot(
             name: metadata_cgu_name,
             kind: ModuleKind::Metadata,
             object: Some(tmp_file),
+            dwarf_object: None,
             bytecode: None,
         })
     } else {