summaryrefslogtreecommitdiff
path: root/iirs_utils.adb
diff options
context:
space:
mode:
authorTristan Gingold2014-06-22 11:00:41 +0200
committerTristan Gingold2014-06-22 11:00:41 +0200
commit289f69a3ed370bc5847f1b98517a7bb6a038b427 (patch)
tree4ee0398ddac2432ff6b0e6f6181b4f08c659b15b /iirs_utils.adb
parent212268f54c947f4360a7d0e5b45faa97f76a4a9d (diff)
downloadghdl-289f69a3ed370bc5847f1b98517a7bb6a038b427.tar.gz
ghdl-289f69a3ed370bc5847f1b98517a7bb6a038b427.tar.bz2
ghdl-289f69a3ed370bc5847f1b98517a7bb6a038b427.zip
Strengthen Is_Signal_Object, add a test for alias.
Diffstat (limited to 'iirs_utils.adb')
-rw-r--r--iirs_utils.adb11
1 files changed, 1 insertions, 10 deletions
diff --git a/iirs_utils.adb b/iirs_utils.adb
index 5bc35fb..7ee171c 100644
--- a/iirs_utils.adb
+++ b/iirs_utils.adb
@@ -838,15 +838,6 @@ package body Iirs_Utils is
Adecl := Get_Base_Name (Name);
loop
case Get_Kind (Adecl) is
- when Iir_Kind_Variable_Declaration
- | Iir_Kind_Variable_Interface_Declaration
- | Iir_Kind_Constant_Declaration
- | Iir_Kind_Constant_Interface_Declaration
- | Iir_Kind_Implicit_Dereference
- | Iir_Kind_Dereference
- | Iir_Kind_Attribute_Value
- | Iir_Kind_Function_Call =>
- return False;
when Iir_Kind_Signal_Declaration
| Iir_Kind_Signal_Interface_Declaration
| Iir_Kind_Guard_Signal_Declaration
@@ -855,7 +846,7 @@ package body Iirs_Utils is
when Iir_Kind_Object_Alias_Declaration =>
Adecl := Get_Base_Name (Get_Name (Adecl));
when others =>
- Error_Kind ("is_signal_object", Adecl);
+ return False;
end case;
end loop;
end Is_Signal_Object;