Skip to content

Commit f42b7c8

Browse files
authored
Merge pull request rust-lang#154 from bjorn3/dependabot/cargo/cranelift-606eee5
Bump cranelift from `fe081d3` to `606eee5`
2 parents ccf660c + 4a69f55 commit f42b7c8

File tree

2 files changed

+30
-19
lines changed

2 files changed

+30
-19
lines changed

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/pretty_clif.rs

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,26 @@ use crate::prelude::*;
1010
pub struct CommentWriter(pub HashMap<Inst, String>);
1111

1212
impl FuncWriter for CommentWriter {
13+
fn write_preamble(
14+
&mut self,
15+
w: &mut dyn fmt::Write,
16+
func: &Function,
17+
reg_info: Option<&isa::RegInfo>,
18+
) -> Result<bool, fmt::Error> {
19+
PlainWriter.write_preamble(w, func, reg_info)
20+
}
21+
22+
fn write_ebb_header(
23+
&mut self,
24+
w: &mut dyn fmt::Write,
25+
func: &Function,
26+
isa: Option<&dyn isa::TargetIsa>,
27+
ebb: Ebb,
28+
indent: usize,
29+
) -> fmt::Result {
30+
PlainWriter.write_ebb_header(w, func, isa, ebb, indent)
31+
}
32+
1333
fn write_instruction(
1434
&mut self,
1535
w: &mut dyn fmt::Write,
@@ -25,15 +45,6 @@ impl FuncWriter for CommentWriter {
2545
}
2646
Ok(())
2747
}
28-
29-
fn write_preamble(
30-
&mut self,
31-
w: &mut dyn fmt::Write,
32-
func: &Function,
33-
reg_info: Option<&isa::RegInfo>,
34-
) -> Result<bool, fmt::Error> {
35-
PlainWriter.write_preamble(w, func, reg_info)
36-
}
3748
}
3849

3950
impl<'a, 'tcx: 'a, B: Backend + 'a> FunctionCx<'a, 'tcx, B> {

0 commit comments

Comments
 (0)