From 8e9ac361bd234856d75438afb817abe9d4d06a4e Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Fri, 20 Oct 2017 09:19:28 -0700 Subject: [PATCH] Remove the CFG entry_block member. It was not used. --- lib/cretonne/src/flowgraph.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/cretonne/src/flowgraph.rs b/lib/cretonne/src/flowgraph.rs index ce9744ac38..67ff150196 100644 --- a/lib/cretonne/src/flowgraph.rs +++ b/lib/cretonne/src/flowgraph.rs @@ -45,7 +45,6 @@ pub struct CFGNode { /// extended basic blocks. #[derive(Debug)] pub struct ControlFlowGraph { - entry_block: Option, data: EntityMap, valid: bool, } @@ -54,7 +53,6 @@ impl ControlFlowGraph { /// Allocate a new blank control flow graph. pub fn new() -> ControlFlowGraph { ControlFlowGraph { - entry_block: None, data: EntityMap::new(), valid: false, } @@ -71,7 +69,6 @@ impl ControlFlowGraph { /// /// This will clear and overwrite any information already stored in this data structure. pub fn compute(&mut self, func: &Function) { - self.entry_block = func.layout.entry_block(); self.data.clear(); self.data.resize(func.dfg.num_ebbs());