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

@@ -140,7 +140,7 @@ pub trait CodeSink {
fn reloc_block(&mut self, _: Reloc, _: CodeOffset);
/// Add a relocation referencing an external symbol plus the addend at the current offset.
fn reloc_external(&mut self, _: Reloc, _: &ExternalName, _: Addend);
fn reloc_external(&mut self, _: SourceLoc, _: Reloc, _: &ExternalName, _: Addend);
/// Add a relocation referencing a constant.
fn reloc_constant(&mut self, _: Reloc, _: ConstantOffset);