1
Fork 0

Defer creating drop trees in MIR lowering until leaving that scope

This commit is contained in:
Matthew Jasper 2019-11-16 13:23:31 +00:00 committed by Aaron Hill
parent 0d37dca25a
commit fa3e2fcbe4
No known key found for this signature in database
GPG key ID: B4087E510E98B164
8 changed files with 766 additions and 728 deletions

View file

@ -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)?;