cranelift codegen: pass source locations with external relocations;

This commit is contained in:
Benjamin Bouvier
2020-03-31 12:04:34 +02:00
parent 71923c805a
commit f4c4a84b84
16 changed files with 80 additions and 24 deletions

View File

@@ -205,7 +205,8 @@ pub(crate) fn define(shared_defs: &SharedDefinitions, regs: &IsaRegs) -> RecipeG
recipes.push(EncodingRecipeBuilder::new("UJcall", &formats.call, 4).emit(
r#"
sink.reloc_external(Reloc::RiscvCall,
sink.reloc_external(func.srclocs[inst],
Reloc::RiscvCall,
&func.dfg.ext_funcs[func_ref].name,
0);
// rd=%x1 is the standard link register.