diff options
author | Tristan Gingold <tgingold@free.fr> | 2015-09-10 20:59:08 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2015-09-10 20:59:08 +0200 |
commit | 42f4c411641c04da2b8f08f9029e17bfd37206e4 (patch) | |
tree | 97db2955734ee7e059f461cef8a2924eeb49271d /src/ortho/mcode/ortho_code-types.adb | |
parent | 95632804220716d4993d3e4b0d0cba06d984a837 (diff) | |
download | ghdl-42f4c411641c04da2b8f08f9029e17bfd37206e4.tar.gz ghdl-42f4c411641c04da2b8f08f9029e17bfd37206e4.tar.bz2 ghdl-42f4c411641c04da2b8f08f9029e17bfd37206e4.zip |
Reimplement table package (used instead of GNAT.Table).
Diffstat (limited to 'src/ortho/mcode/ortho_code-types.adb')
-rw-r--r-- | src/ortho/mcode/ortho_code-types.adb | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/ortho/mcode/ortho_code-types.adb b/src/ortho/mcode/ortho_code-types.adb index e5893aa08..439c065f5 100644 --- a/src/ortho/mcode/ortho_code-types.adb +++ b/src/ortho/mcode/ortho_code-types.adb @@ -17,7 +17,7 @@ -- 02111-1307, USA. with Ada.Text_IO; with Ada.Unchecked_Conversion; -with GNAT.Table; +with Tables; with Ortho_Code.Consts; use Ortho_Code.Consts; with Ortho_Code.Debug; with Ortho_Code.Abi; use Ortho_Code.Abi; @@ -69,12 +69,11 @@ package body Ortho_Code.Types is Lit_True : O_Cnode; end record; - package Tnodes is new GNAT.Table + package Tnodes is new Tables (Table_Component_Type => Tnode_Common, Table_Index_Type => O_Tnode, Table_Low_Bound => O_Tnode_First, - Table_Initial => 128, - Table_Increment => 100); + Table_Initial => 128); type Field_Type is record Parent : O_Tnode; @@ -84,12 +83,11 @@ package body Ortho_Code.Types is Next : O_Fnode; end record; - package Fnodes is new GNAT.Table + package Fnodes is new Tables (Table_Component_Type => Field_Type, Table_Index_Type => O_Fnode, Table_Low_Bound => 2, - Table_Initial => 64, - Table_Increment => 100); + Table_Initial => 64); function Get_Type_Kind (Atype : O_Tnode) return OT_Kind is begin |