Remove the CFG entry_block member.
It was not used.
This commit is contained in:
@@ -45,7 +45,6 @@ pub struct CFGNode {
|
|||||||
/// extended basic blocks.
|
/// extended basic blocks.
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct ControlFlowGraph {
|
pub struct ControlFlowGraph {
|
||||||
entry_block: Option<Ebb>,
|
|
||||||
data: EntityMap<Ebb, CFGNode>,
|
data: EntityMap<Ebb, CFGNode>,
|
||||||
valid: bool,
|
valid: bool,
|
||||||
}
|
}
|
||||||
@@ -54,7 +53,6 @@ impl ControlFlowGraph {
|
|||||||
/// Allocate a new blank control flow graph.
|
/// Allocate a new blank control flow graph.
|
||||||
pub fn new() -> ControlFlowGraph {
|
pub fn new() -> ControlFlowGraph {
|
||||||
ControlFlowGraph {
|
ControlFlowGraph {
|
||||||
entry_block: None,
|
|
||||||
data: EntityMap::new(),
|
data: EntityMap::new(),
|
||||||
valid: false,
|
valid: false,
|
||||||
}
|
}
|
||||||
@@ -71,7 +69,6 @@ impl ControlFlowGraph {
|
|||||||
///
|
///
|
||||||
/// This will clear and overwrite any information already stored in this data structure.
|
/// This will clear and overwrite any information already stored in this data structure.
|
||||||
pub fn compute(&mut self, func: &Function) {
|
pub fn compute(&mut self, func: &Function) {
|
||||||
self.entry_block = func.layout.entry_block();
|
|
||||||
self.data.clear();
|
self.data.clear();
|
||||||
self.data.resize(func.dfg.num_ebbs());
|
self.data.resize(func.dfg.num_ebbs());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user