misc. cleanup

This commit is contained in:
data-pup
2019-11-26 15:08:23 -05:00
parent 4f47a4f607
commit d3f3aa04d7

View File

@@ -156,10 +156,9 @@ impl Compiler {
let dbg = if let Some(debug_data) = debug_data {
let target_config = self.isa.frontend_config();
let triple = self.isa.triple().clone();
let mut funcs = Vec::new();
let ofs = VMOffsets::new(target_config.pointer_bytes(), &module);
if ofs.num_defined_memories > 0 {
let mut funcs = Vec::new();
for (i, allocated) in allocated_functions.into_iter() {
let ptr = (*allocated) as *const u8;
let body_len = compilation.get(i).body.len();
@@ -174,7 +173,7 @@ impl Compiler {
}
};
let bytes = emit_debugsections_image(
triple,
self.isa.triple().clone(),
&target_config,
&debug_data,
&module_vmctx_info,