|
From: <sv...@va...> - 2008-02-26 01:09:34
|
Author: sewardj
Date: 2008-02-26 01:09:37 +0000 (Tue, 26 Feb 2008)
New Revision: 7470
Log:
ML_(describe_type): fill in missing cases
Modified:
branches/DATASYMS/coregrind/m_debuginfo/priv_tytypes.h
branches/DATASYMS/coregrind/m_debuginfo/tytypes.c
Modified: branches/DATASYMS/coregrind/m_debuginfo/priv_tytypes.h
===================================================================
--- branches/DATASYMS/coregrind/m_debuginfo/priv_tytypes.h 2008-02-26 00:38:38 UTC (rev 7469)
+++ branches/DATASYMS/coregrind/m_debuginfo/priv_tytypes.h 2008-02-26 01:09:37 UTC (rev 7470)
@@ -83,7 +83,7 @@
};
struct _Type {
- enum { Ty_Base=30, Ty_PorR, Ty_Ref, Ty_TyDef, Ty_StOrUn,
+ enum { Ty_Base=30, Ty_PorR, Ty_TyDef, Ty_StOrUn,
Ty_Enum, Ty_Array, Ty_Fn, Ty_Qual, Ty_Void } tag;
union {
struct {
Modified: branches/DATASYMS/coregrind/m_debuginfo/tytypes.c
===================================================================
--- branches/DATASYMS/coregrind/m_debuginfo/tytypes.c 2008-02-26 00:38:38 UTC (rev 7469)
+++ branches/DATASYMS/coregrind/m_debuginfo/tytypes.c 2008-02-26 01:09:37 UTC (rev 7470)
@@ -442,6 +442,12 @@
switch (ty->tag) {
+ /* These are all atomic types; there is nothing useful we can
+ do. */
+ case Ty_Enum:
+ case Ty_Fn:
+ case Ty_Void:
+ case Ty_PorR:
case Ty_Base:
goto done;
@@ -546,6 +552,7 @@
VG_(printf)("\n");
vg_assert(0);
}
+
}
}
|