diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-05-03 08:31:25 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-05-04 19:04:07 +0200 |
commit | dbbd98a06f7802cc309e2884f7dfabf71942c115 (patch) | |
tree | e044a101ea3939d0f8e512f2a4e87f4fa66a90bf /src/synth/synth-environment-debug.adb | |
parent | 012cd7bb501aea20b41fc63516e67256dc62fd5c (diff) | |
download | ghdl-dbbd98a06f7802cc309e2884f7dfabf71942c115.tar.gz ghdl-dbbd98a06f7802cc309e2884f7dfabf71942c115.tar.bz2 ghdl-dbbd98a06f7802cc309e2884f7dfabf71942c115.zip |
synth: use tri_state_type for seq_assign_value.
Diffstat (limited to 'src/synth/synth-environment-debug.adb')
-rw-r--r-- | src/synth/synth-environment-debug.adb | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/synth/synth-environment-debug.adb b/src/synth/synth-environment-debug.adb index 81e8b17af..3278e8ba9 100644 --- a/src/synth/synth-environment-debug.adb +++ b/src/synth/synth-environment-debug.adb @@ -84,11 +84,14 @@ package body Synth.Environment.Debug is New_Line; end; Put_Line (" value:"); - if Rec.Val.Is_Static then - Put_Line (" static"); - else - Dump_Partial_Assign (Rec.Val.Asgns); - end if; + case Rec.Val.Is_Static is + when Unknown => + Put_Line (" ??? (unknown)"); + when True => + Put_Line (" static"); + when False => + Dump_Partial_Assign (Rec.Val.Asgns); + end case; end Dump_Assign; procedure Dump_Phi (Id : Phi_Id) |