1
Fork 0

add otherwise into targets

This commit is contained in:
ouz-a 2023-11-27 21:26:11 +03:00
parent de2779077a
commit 15f9bab7ba
2 changed files with 5 additions and 3 deletions

View file

@ -107,7 +107,7 @@ pub fn pretty_terminator<W: io::Write>(terminator: &TerminatorKind, w: &mut W) -
if i > 0 {
write!(w, ", ")?;
}
write!(w, "{}: {:?}", labels[i], target)?;
write!(w, "{}: bb{:?}", labels[i], target)?;
}
if show_unwind {
write!(w, ", ")?;
@ -126,7 +126,7 @@ pub fn pretty_terminator_head(terminator: &TerminatorKind) -> String {
match terminator {
Goto { .. } => format!(" goto"),
SwitchInt { discr, .. } => {
format!(" switch({})", pretty_operand(discr))
format!(" switchInt(_{})", pretty_operand(discr))
}
Resume => format!(" resume"),
Abort => format!(" abort"),