Browse Source

frontend: Add `entries()` API for Switch (#1358)

pull/1019/head
Joshua Nelson 5 years ago
committed by Benjamin Bouvier
parent
commit
175b9641e0
  1. 5
      cranelift/frontend/src/switch.rs

5
cranelift/frontend/src/switch.rs

@ -62,6 +62,11 @@ impl Switch {
);
}
/// Get a reference to all existing entries
pub fn entries(&self) -> &HashMap<EntryIndex, Ebb> {
&self.cases
}
/// Turn the `cases` `HashMap` into a list of `ContiguousCaseRange`s.
///
/// # Postconditions

Loading…
Cancel
Save