File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 24
24
with Switch ; use Switch;
25
25
with Tree_Walk ; use Tree_Walk;
26
26
with Irep_Schemata ; use Irep_Schemata;
27
+ with Symbol_Table_Info ; use Symbol_Table_Info;
28
+ with Gather_Irep_Symbols ;
29
+ with Iinfo ; use Iinfo;
27
30
28
31
package body Driver is
29
32
30
33
procedure GNAT_To_Goto (GNAT_Root : Node_Id)
31
34
is
32
- Unused : constant Irep_Code_Block := Do_Compilation_Unit (GNAT_Root);
35
+ Program_Irep : constant Irep_Code_Block := Do_Compilation_Unit (GNAT_Root);
36
+ Local_Symbol_Table : Symbol_Table;
33
37
begin
34
- null ; -- ??? dump to JSON file
38
+ Gather_Irep_Symbols.Gather (Local_Symbol_Table, Irep (Program_Irep));
35
39
end GNAT_To_Goto ;
36
40
37
41
function Is_Back_End_Switch (Switch : String) return Boolean is
Original file line number Diff line number Diff line change
1
+
2
+ package body Gather_Irep_Symbols is
3
+
4
+ procedure Gather (Table : in out Symbol_Table; Ir : Irep) is
5
+ begin
6
+ null ;
7
+ end ;
8
+
9
+ end Gather_Irep_Symbols ;
Original file line number Diff line number Diff line change
1
+ with Symbol_Table_Info ; use Symbol_Table_Info;
2
+ with Iinfo ; use Iinfo;
3
+
4
+ package Gather_Irep_Symbols is
5
+
6
+ procedure Gather (Table : in out Symbol_Table; Ir : Irep);
7
+
8
+ end Gather_Irep_Symbols ;
You can’t perform that action at this time.
0 commit comments