Defer creating drop trees in MIR lowering until leaving that scope
This commit is contained in:
parent
0d37dca25a
commit
fa3e2fcbe4
8 changed files with 766 additions and 728 deletions
|
@ -111,13 +111,24 @@ where
|
|||
write!(w, r#"<table border="0" cellborder="1" cellspacing="0">"#)?;
|
||||
|
||||
// Basic block number at the top.
|
||||
let (blk, bgcolor) = if data.is_cleanup {
|
||||
(format!("{} (cleanup)", block.index()), "lightblue")
|
||||
} else {
|
||||
let color = if dark_mode {
|
||||
"dimgray"
|
||||
} else {
|
||||
"gray"
|
||||
};
|
||||
(format!("{}", block.index()), "gray")
|
||||
};
|
||||
write!(
|
||||
w,
|
||||
r#"<tr><td bgcolor="{bgcolor}" {attrs} colspan="{colspan}">{blk}</td></tr>"#,
|
||||
bgcolor = if dark_mode { "dimgray" } else { "gray" },
|
||||
attrs = r#"align="center""#,
|
||||
colspan = num_cols,
|
||||
blk = block.index()
|
||||
blk = blk,
|
||||
color = color
|
||||
)?;
|
||||
|
||||
init(w)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue