diff options
author | Tristan Gingold <tgingold@free.fr> | 2018-12-11 06:55:40 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2018-12-11 06:55:40 +0100 |
commit | 0e9f6c8979a1a05e287b183b77108f2c46903c82 (patch) | |
tree | 253b6c2aa2277d7d775b416db0cfafa208a1aaab /src/vhdl/translate/trans-chap3.adb | |
parent | 3699e4f8b6bf5a2e757bcd397202dbdebf614a02 (diff) | |
download | ghdl-0e9f6c8979a1a05e287b183b77108f2c46903c82.tar.gz ghdl-0e9f6c8979a1a05e287b183b77108f2c46903c82.tar.bz2 ghdl-0e9f6c8979a1a05e287b183b77108f2c46903c82.zip |
translate: renaming of Kind_Expr/Get_Ortho_Expr.
Diffstat (limited to 'src/vhdl/translate/trans-chap3.adb')
-rw-r--r-- | src/vhdl/translate/trans-chap3.adb | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/vhdl/translate/trans-chap3.adb b/src/vhdl/translate/trans-chap3.adb index 8b6ff6400..49cf89ec7 100644 --- a/src/vhdl/translate/trans-chap3.adb +++ b/src/vhdl/translate/trans-chap3.adb @@ -228,6 +228,14 @@ package body Trans.Chap3 is -- Enumeration -- ------------------ + procedure Set_Ortho_Literal (Target : Iir; Expr : O_Cnode) + is + Info : Ortho_Info_Acc; + begin + Info := Add_Info (Target, Kind_Enum_Lit); + Info.Lit_Node := Expr; + end Set_Ortho_Literal; + function Translate_Enumeration_Literal (Lit : Iir_Enumeration_Literal) return O_Ident is @@ -280,7 +288,7 @@ package body Trans.Chap3 is Lit_Name := Translate_Enumeration_Literal (El); New_Enum_Literal (Constr, Lit_Name, Val); - Set_Ortho_Expr (El, Val); + Set_Ortho_Literal (El, Val); end loop; Finish_Enum_Type (Constr, Info.Ortho_Type (Mode_Value)); if Nbr <= 256 then @@ -312,8 +320,8 @@ package body Trans.Chap3 is Translate_Enumeration_Literal (False_Lit), False_Node, Translate_Enumeration_Literal (True_Lit), True_Node); Info.Type_Mode := Type_Mode_B1; - Set_Ortho_Expr (False_Lit, False_Node); - Set_Ortho_Expr (True_Lit, True_Node); + Set_Ortho_Literal (False_Lit, False_Node); + Set_Ortho_Literal (True_Lit, True_Node); Info.S.Nocheck_Low := True; Info.S.Nocheck_Hi := True; Info.B.Align := Align_8; |