diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-01-02 04:16:49 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-01-02 05:13:45 +0100 |
commit | 0e0c3efd5e7a375329982f293e85c01d254eaac1 (patch) | |
tree | 6e864b789277a1e999276cc5d1f72bf74d2f3cdb /src/vhdl/translate/trans-chap14.adb | |
parent | 4a5a130ce205020db83631c631a79dc0444aec88 (diff) | |
download | ghdl-0e0c3efd5e7a375329982f293e85c01d254eaac1.tar.gz ghdl-0e0c3efd5e7a375329982f293e85c01d254eaac1.tar.bz2 ghdl-0e0c3efd5e7a375329982f293e85c01d254eaac1.zip |
iirs: renames Iir_Kinds_Scalar_Type_Definition
Diffstat (limited to 'src/vhdl/translate/trans-chap14.adb')
-rw-r--r-- | src/vhdl/translate/trans-chap14.adb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vhdl/translate/trans-chap14.adb b/src/vhdl/translate/trans-chap14.adb index 05f017c3f..cd1254d6f 100644 --- a/src/vhdl/translate/trans-chap14.adb +++ b/src/vhdl/translate/trans-chap14.adb @@ -431,7 +431,8 @@ package body Trans.Chap14 is Prefix : constant Iir := Get_Prefix (Attr); Prefix_Type : constant Iir := Get_Type (Prefix); begin - if Get_Kind (Prefix_Type) in Iir_Kinds_Scalar_Type_Definition then + if Get_Kind (Prefix_Type) in Iir_Kinds_Scalar_Type_And_Subtype_Definition + then -- Effecient handling for a scalar signal. Name := Chap6.Translate_Name (Prefix, Mode_Signal); return New_Value (Get_Signal_Field (Name, Field)); @@ -720,7 +721,8 @@ package body Trans.Chap14 is Prefix := Get_Prefix (Attr); Prefix_Type := Get_Type (Prefix); - if Get_Kind (Prefix_Type) in Iir_Kinds_Scalar_Type_Definition then + if Get_Kind (Prefix_Type) in Iir_Kinds_Scalar_Type_And_Subtype_Definition + then -- Effecient handling for a scalar signal. Name := Chap6.Translate_Name (Prefix, Mode_Signal); return Read_Driving_Attribute (New_Value (M2Lv (Name))); |