1
Fork 0

Preserve DebugInfo in DeadStoreElimination.

This commit is contained in:
Camille GILLOT 2023-01-12 20:04:42 +00:00
parent 1bc0463b18
commit 27d6a57e58
30 changed files with 773 additions and 807 deletions

View file

@ -365,7 +365,7 @@ impl<T: Idx> From<GrowableBitSet<T>> for BitSet<T> {
/// All operations that involve an element will panic if the element is equal
/// to or greater than the domain size. All operations that involve two bitsets
/// will panic if the bitsets have differing domain sizes.
#[derive(Debug, PartialEq, Eq)]
#[derive(PartialEq, Eq)]
pub struct ChunkedBitSet<T> {
domain_size: usize,
@ -1074,6 +1074,12 @@ impl<T: Idx> fmt::Debug for BitSet<T> {
}
}
impl<T: Idx> fmt::Debug for ChunkedBitSet<T> {
fn fmt(&self, w: &mut fmt::Formatter<'_>) -> fmt::Result {
w.debug_list().entries(self.iter()).finish()
}
}
impl<T: Idx> ToString for BitSet<T> {
fn to_string(&self) -> String {
let mut result = String::new();