Bugfix: print tracepoints in IR.
This commit is contained in:
parent
fa228fdd82
commit
0e0d3302f7
|
@ -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!(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue