cranelift codegen: pass source locations with external relocations;
This commit is contained in:
@@ -41,6 +41,7 @@ impl binemit::RelocSink for RelocSink {
|
||||
fn reloc_external(
|
||||
&mut self,
|
||||
offset: binemit::CodeOffset,
|
||||
_srcloc: ir::SourceLoc,
|
||||
reloc: binemit::Reloc,
|
||||
name: &ExternalName,
|
||||
addend: binemit::Addend,
|
||||
|
||||
@@ -434,6 +434,7 @@ impl binemit::RelocSink for RelocSink {
|
||||
fn reloc_external(
|
||||
&mut self,
|
||||
offset: binemit::CodeOffset,
|
||||
_srcloc: ir::SourceLoc,
|
||||
reloc: binemit::Reloc,
|
||||
name: &ir::ExternalName,
|
||||
addend: binemit::Addend,
|
||||
|
||||
@@ -31,6 +31,7 @@ pub mod binemit {
|
||||
fn reloc_external(
|
||||
&mut self,
|
||||
_offset: binemit::CodeOffset,
|
||||
_srcloc: ir::SourceLoc,
|
||||
_reloc: binemit::Reloc,
|
||||
_name: &ir::ExternalName,
|
||||
_addend: binemit::Addend,
|
||||
|
||||
@@ -5404,6 +5404,8 @@ impl<'this, M: ModuleContext> Context<'this, M> {
|
||||
.unwrap()
|
||||
.0) as u32
|
||||
+ 2,
|
||||
// Passing a default location here, since until proven otherwise, it's not used.
|
||||
ir::SourceLoc::default(),
|
||||
binemit::Reloc::Abs8,
|
||||
name,
|
||||
0,
|
||||
|
||||
@@ -87,6 +87,7 @@ impl binemit::RelocSink for UnimplementedRelocSink {
|
||||
fn reloc_external(
|
||||
&mut self,
|
||||
_: binemit::CodeOffset,
|
||||
_: ir::SourceLoc,
|
||||
_: binemit::Reloc,
|
||||
_: &ir::ExternalName,
|
||||
_: binemit::Addend,
|
||||
|
||||
Reference in New Issue
Block a user