diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-06-04 18:26:26 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-06-04 18:26:26 +0200 |
commit | 65c309f9d46d1a7f1dfc046d23e2b691fbfc6d57 (patch) | |
tree | 1598db585bd0f49acca51960ab805fe84b62ebf0 | |
parent | ce47f31048c5f6565f55a84bbb0283b573b87c74 (diff) | |
download | ghdl-65c309f9d46d1a7f1dfc046d23e2b691fbfc6d57.tar.gz ghdl-65c309f9d46d1a7f1dfc046d23e2b691fbfc6d57.tar.bz2 ghdl-65c309f9d46d1a7f1dfc046d23e2b691fbfc6d57.zip |
vhdl-prints: try to print error content.
-rw-r--r-- | src/vhdl/vhdl-prints.adb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-prints.adb b/src/vhdl/vhdl-prints.adb index f1704476a..634e2be3c 100644 --- a/src/vhdl/vhdl-prints.adb +++ b/src/vhdl/vhdl-prints.adb @@ -3601,6 +3601,16 @@ package body Vhdl.Prints is when Iir_Kind_Signature => Disp_Signature (Ctxt, Expr); + when Iir_Kind_Error => + declare + Orig : constant Iir := Get_Error_Origin (Expr); + begin + if Orig /= Null_Iir then + Print (Ctxt, Orig); + else + Error_Kind ("print/error", Expr); + end if; + end; when others => Error_Kind ("print", Expr); end case; |