summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Drummond2013-12-02 17:47:55 +0000
committerBrian Drummond2013-12-02 17:47:55 +0000
commit242ee7a30d0ac1d5d5b7e59d5206f1cef30d1435 (patch)
tree84d0be0112a16e52095d40464112eac7910ee42f
parent17dd49c8643f08dff78900e9a9db56a0ade75c55 (diff)
downloadghdl-242ee7a30d0ac1d5d5b7e59d5206f1cef30d1435.tar.gz
ghdl-242ee7a30d0ac1d5d5b7e59d5206f1cef30d1435.tar.bz2
ghdl-242ee7a30d0ac1d5d5b7e59d5206f1cef30d1435.zip
Comment out some unreachable code that stopped the mcode build
-rw-r--r--canon.adb20
-rw-r--r--translate/translation.adb20
2 files changed, 20 insertions, 20 deletions
diff --git a/canon.adb b/canon.adb
index 6da6039..317261b 100644
--- a/canon.adb
+++ b/canon.adb
@@ -2429,16 +2429,16 @@ package body Canon is
-- This code is not executed since context clauses are already
-- canonicalized.
El := Get_Context_Items (Unit);
- while El /= Null_Iir loop
- case Get_Kind (El) is
- when Iir_Kind_Use_Clause =>
- null;
- when Iir_Kind_Library_Clause =>
- null;
- when others =>
- Error_Kind ("canonicalize1", El);
- end case;
- end loop;
+-- while El /= Null_Iir loop
+-- case Get_Kind (El) is
+-- when Iir_Kind_Use_Clause =>
+-- null;
+-- when Iir_Kind_Library_Clause =>
+-- null;
+-- when others =>
+-- Error_Kind ("canonicalize1", El);
+-- end case;
+-- end loop;
end if;
El := Get_Library_Unit (Unit);
diff --git a/translate/translation.adb b/translate/translation.adb
index 88ac566..67ca578 100644
--- a/translate/translation.adb
+++ b/translate/translation.adb
@@ -27742,16 +27742,16 @@ package body Translation is
if False then
El := Get_Context_Items (Unit);
- while El /= Null_Iir loop
- case Get_Kind (El) is
- when Iir_Kind_Use_Clause =>
- null;
- when Iir_Kind_Library_Clause =>
- null;
- when others =>
- Error_Kind ("translate1", El);
- end case;
- end loop;
+-- while El /= Null_Iir loop
+-- case Get_Kind (El) is
+-- when Iir_Kind_Use_Clause =>
+-- null;
+-- when Iir_Kind_Library_Clause =>
+-- null;
+-- when others =>
+-- Error_Kind ("translate1", El);
+-- end case;
+-- end loop;
end if;
El := Get_Library_Unit (Unit);