misc. cleanup
This commit is contained in:
@@ -156,10 +156,9 @@ impl Compiler {
|
|||||||
|
|
||||||
let dbg = if let Some(debug_data) = debug_data {
|
let dbg = if let Some(debug_data) = debug_data {
|
||||||
let target_config = self.isa.frontend_config();
|
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);
|
let ofs = VMOffsets::new(target_config.pointer_bytes(), &module);
|
||||||
if ofs.num_defined_memories > 0 {
|
if ofs.num_defined_memories > 0 {
|
||||||
|
let mut funcs = Vec::new();
|
||||||
for (i, allocated) in allocated_functions.into_iter() {
|
for (i, allocated) in allocated_functions.into_iter() {
|
||||||
let ptr = (*allocated) as *const u8;
|
let ptr = (*allocated) as *const u8;
|
||||||
let body_len = compilation.get(i).body.len();
|
let body_len = compilation.get(i).body.len();
|
||||||
@@ -174,7 +173,7 @@ impl Compiler {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
let bytes = emit_debugsections_image(
|
let bytes = emit_debugsections_image(
|
||||||
triple,
|
self.isa.triple().clone(),
|
||||||
&target_config,
|
&target_config,
|
||||||
&debug_data,
|
&debug_data,
|
||||||
&module_vmctx_info,
|
&module_vmctx_info,
|
||||||
|
|||||||
Reference in New Issue
Block a user