Bugfix: print tracepoints in IR.

This commit is contained in:
Chris Fallin 2023-04-15 11:47:04 -07:00
parent fa228fdd82
commit 0e0d3302f7

View file

@ -151,6 +151,10 @@ impl<'a> Display for FunctionBodyDisplay<'a> {
ValueDef::Alias(val) => { ValueDef::Alias(val) => {
writeln!(f, "{} {} = {}", self.1, inst, val)?; writeln!(f, "{} {} = {}", self.1, inst, val)?;
} }
ValueDef::Trace(id, args) => {
let args = args.iter().map(|&v| format!("{}", v)).collect::<Vec<_>>();
writeln!(f, "{} trace {}, {}", self.1, id, args.join(", "))?;
}
_ => unreachable!(), _ => unreachable!(),
} }
} }