aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/translate/trans-chap12.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2015-05-12 20:06:22 +0200
committerTristan Gingold <tgingold@free.fr>2015-05-12 20:06:22 +0200
commite8e5c3d2ab5783d65fcd7a33a7b35c103179ece8 (patch)
tree7705d74b45e55239f58242f1ce5d591ebfe7aa09 /src/vhdl/translate/trans-chap12.adb
parent1effd3eb564f49a9b8e3543dfdbb121c6e1e9b73 (diff)
downloadghdl-e8e5c3d2ab5783d65fcd7a33a7b35c103179ece8.tar.gz
ghdl-e8e5c3d2ab5783d65fcd7a33a7b35c103179ece8.tar.bz2
ghdl-e8e5c3d2ab5783d65fcd7a33a7b35c103179ece8.zip
Add context declaration and reference (vhdl 2008).
Diffstat (limited to 'src/vhdl/translate/trans-chap12.adb')
-rw-r--r--src/vhdl/translate/trans-chap12.adb5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vhdl/translate/trans-chap12.adb b/src/vhdl/translate/trans-chap12.adb
index 0861852b8..63661317d 100644
--- a/src/vhdl/translate/trans-chap12.adb
+++ b/src/vhdl/translate/trans-chap12.adb
@@ -590,6 +590,8 @@ package body Trans.Chap12 is
-- Mark the spec with 'body is present' flag.
Set_Elab_Flag (Get_Design_Unit (Get_Package (Lib_Unit)), True);
Translate (Unit, Whole);
+ when Iir_Kind_Context_Declaration =>
+ null;
when others =>
Error_Kind ("elaborate", Lib_Unit);
end case;
@@ -614,7 +616,8 @@ package body Trans.Chap12 is
when Iir_Kind_Architecture_Body
| Iir_Kind_Package_Body
| Iir_Kind_Configuration_Declaration
- | Iir_Kind_Package_Instantiation_Declaration =>
+ | Iir_Kind_Package_Instantiation_Declaration
+ | Iir_Kind_Context_Declaration =>
null;
when others =>
Error_Kind ("elaborate(2)", Lib_Unit);