Move switch_sources
from Body to BasicBlocks
This commit is contained in:
parent
39d9c1cb1f
commit
dfa6a7cbde
2 changed files with 1 additions and 9 deletions
|
@ -42,7 +42,6 @@ use std::ops::{ControlFlow, Index, IndexMut};
|
|||
use std::{iter, mem};
|
||||
|
||||
pub use self::query::*;
|
||||
use self::switch_sources::SwitchSources;
|
||||
pub use basic_blocks::BasicBlocks;
|
||||
|
||||
mod basic_blocks;
|
||||
|
@ -448,13 +447,6 @@ impl<'tcx> Body<'tcx> {
|
|||
.unwrap_or_else(|| Either::Right(block_data.terminator()))
|
||||
}
|
||||
|
||||
/// `body.switch_sources()[&(target, switch)]` returns a list of switch
|
||||
/// values that lead to a `target` block from a `switch` block.
|
||||
#[inline]
|
||||
pub fn switch_sources(&self) -> &SwitchSources {
|
||||
self.basic_blocks.switch_sources()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn dominators(&self) -> Dominators<BasicBlock> {
|
||||
dominators(&self.basic_blocks)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue