Skip to content

Commit 1461751

Browse files
committed
Make {Debug,Unwind}Context::emit non-generic
1 parent d8308ec commit 1461751

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/debuginfo/emit.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Write the debuginfo into an object file.
22
3+
use cranelift_object::ObjectProduct;
34
use rustc_data_structures::fx::FxHashMap;
45

56
use gimli::write::{Address, AttributeValue, EndianVec, Result, Sections, Writer};
@@ -10,7 +11,7 @@ use crate::backend::WriteDebugInfo;
1011
use super::DebugContext;
1112

1213
impl DebugContext<'_> {
13-
pub(crate) fn emit<P: WriteDebugInfo>(&mut self, product: &mut P) {
14+
pub(crate) fn emit(&mut self, product: &mut ObjectProduct) {
1415
let unit_range_list_id = self.dwarf.unit.ranges.add(self.unit_range_list.clone());
1516
let root = self.dwarf.unit.root();
1617
let root = self.dwarf.unit.get_mut(root);

src/debuginfo/unwind.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use crate::prelude::*;
44

55
use cranelift_codegen::isa::{unwind::UnwindInfo, TargetIsa};
66

7+
use cranelift_object::ObjectProduct;
78
use gimli::write::{Address, CieId, EhFrame, FrameTable, Section};
89
use gimli::RunTimeEndian;
910

@@ -55,7 +56,7 @@ impl UnwindContext {
5556
}
5657
}
5758

58-
pub(crate) fn emit<P: WriteDebugInfo>(self, product: &mut P) {
59+
pub(crate) fn emit(self, product: &mut ObjectProduct) {
5960
let mut eh_frame = EhFrame::from(super::emit::WriterRelocate::new(self.endian));
6061
self.frame_table.write_eh_frame(&mut eh_frame).unwrap();
6162

0 commit comments

Comments
 (0)