diff --git a/src/pretty_clif.rs b/src/pretty_clif.rs index 53e0d5cd1cef..efaf200fa1a4 100644 --- a/src/pretty_clif.rs +++ b/src/pretty_clif.rs @@ -10,6 +10,26 @@ use crate::prelude::*; pub struct CommentWriter(pub HashMap); impl FuncWriter for CommentWriter { + fn write_preamble( + &mut self, + w: &mut dyn fmt::Write, + func: &Function, + reg_info: Option<&isa::RegInfo>, + ) -> Result { + PlainWriter.write_preamble(w, func, reg_info) + } + + fn write_ebb_header( + &mut self, + w: &mut dyn fmt::Write, + func: &Function, + isa: Option<&dyn isa::TargetIsa>, + ebb: Ebb, + indent: usize, + ) -> fmt::Result { + PlainWriter.write_ebb_header(w, func, isa, ebb, indent) + } + fn write_instruction( &mut self, w: &mut dyn fmt::Write, @@ -25,15 +45,6 @@ impl FuncWriter for CommentWriter { } Ok(()) } - - fn write_preamble( - &mut self, - w: &mut dyn fmt::Write, - func: &Function, - reg_info: Option<&isa::RegInfo>, - ) -> Result { - PlainWriter.write_preamble(w, func, reg_info) - } } impl<'a, 'tcx: 'a, B: Backend + 'a> FunctionCx<'a, 'tcx, B> {