@@ -7,7 +7,7 @@ use crate::entity::{PrimaryMap, SecondaryMap};
77use crate :: ir:: {
88 self , Block , DataFlowGraph , DynamicStackSlot , DynamicStackSlotData , DynamicStackSlots ,
99 DynamicType , ExtFuncData , FuncRef , GlobalValue , GlobalValueData , Inst , InstructionData ,
10- JumpTable , JumpTableData , JumpTables , Layout , Opcode , SigRef , Signature , SourceLocs , StackSlot ,
10+ JumpTable , JumpTableData , Layout , Opcode , SigRef , Signature , SourceLocs , StackSlot ,
1111 StackSlotData , StackSlots , Table , TableData , Type ,
1212} ;
1313use crate :: isa:: CallConv ;
@@ -170,9 +170,6 @@ pub struct FunctionStencil {
170170 /// Tables referenced.
171171 pub tables : PrimaryMap < ir:: Table , ir:: TableData > ,
172172
173- /// Jump tables used in this function.
174- pub jump_tables : JumpTables ,
175-
176173 /// Data flow graph containing the primary definition of all instructions, blocks and values.
177174 pub dfg : DataFlowGraph ,
178175
@@ -200,7 +197,6 @@ impl FunctionStencil {
200197 self . dynamic_stack_slots . clear ( ) ;
201198 self . global_values . clear ( ) ;
202199 self . tables . clear ( ) ;
203- self . jump_tables . clear ( ) ;
204200 self . dfg . clear ( ) ;
205201 self . layout . clear ( ) ;
206202 self . srclocs . clear ( ) ;
@@ -209,7 +205,7 @@ impl FunctionStencil {
209205
210206 /// Creates a jump table in the function, to be used by `br_table` instructions.
211207 pub fn create_jump_table ( & mut self , data : JumpTableData ) -> JumpTable {
212- self . jump_tables . push ( data)
208+ self . dfg . jump_tables . push ( data)
213209 }
214210
215211 /// Creates a sized stack slot in the function, to be used by `stack_load`, `stack_store`
@@ -304,7 +300,7 @@ impl FunctionStencil {
304300 destination : default_dest,
305301 ..
306302 } => {
307- self . jump_tables [ * table] . iter_mut ( ) . for_each ( |entry| {
303+ self . dfg . jump_tables [ * table] . iter_mut ( ) . for_each ( |entry| {
308304 if * entry == old_dest {
309305 * entry = new_dest;
310306 }
@@ -433,7 +429,6 @@ impl Function {
433429 dynamic_stack_slots : DynamicStackSlots :: new ( ) ,
434430 global_values : PrimaryMap :: new ( ) ,
435431 tables : PrimaryMap :: new ( ) ,
436- jump_tables : PrimaryMap :: new ( ) ,
437432 dfg : DataFlowGraph :: new ( ) ,
438433 layout : Layout :: new ( ) ,
439434 srclocs : SecondaryMap :: new ( ) ,
0 commit comments