Skip to content

Commit 877da4a

Browse files
Remove the Pass implementation of the Print pass. Functionality moved to the PassInstrumentation implementation
Signed-off-by: Tomas Fabrizio Orsi <[email protected]>
1 parent 56f6b6a commit 877da4a

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

hir/src/pass.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -153,28 +153,6 @@ impl Print {
153153
}
154154
}
155155

156-
impl Pass for Print {
157-
type Target = crate::Operation;
158-
159-
fn name(&self) -> &'static str {
160-
"print"
161-
}
162-
163-
fn can_schedule_on(&self, _name: &crate::OperationName) -> bool {
164-
true
165-
}
166-
167-
fn run_on_operation(
168-
&mut self,
169-
op: crate::EntityMut<'_, Self::Target>,
170-
_state: &mut PassExecutionState,
171-
) -> Result<IRAfterPass, crate::Report> {
172-
let op = op.into_entity_ref();
173-
self.print_ir(op);
174-
Ok(IRAfterPass::Unchanged)
175-
}
176-
}
177-
178156
impl PassInstrumentation for Print {
179157
fn run_after_pass(
180158
&mut self,

0 commit comments

Comments
 (0)