When a mismatch is detected by the visitor, type label are converted
to string to help debugging. On unknown label, instead of aborting
during the error dump, return `<UNKNOWN>'.
Also added missing `SIDE_TYPE_OPTIONAL' case.
Change-Id: Ia654c1a293c8a033a15aed3c9fe6473182cbc018
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
case SIDE_TYPE_STRING_UTF32: return "SIDE_TYPE_STRING_UTF32";
case SIDE_TYPE_STRUCT: return "SIDE_TYPE_STRUCT";
case SIDE_TYPE_VARIANT: return "SIDE_TYPE_VARIANT";
+ case SIDE_TYPE_OPTIONAL: return "SIDE_TYPE_OPTIONAL";
case SIDE_TYPE_ARRAY: return "SIDE_TYPE_ARRAY";
case SIDE_TYPE_VLA: return "SIDE_TYPE_VLA";
case SIDE_TYPE_VLA_VISITOR: return "SIDE_TYPE_VLA_VISITOR";
case SIDE_TYPE_DYNAMIC_VLA: return "SIDE_TYPE_DYNAMIC_VLA";
case SIDE_TYPE_DYNAMIC_VLA_VISITOR: return "SIDE_TYPE_DYNAMIC_VLA_VISITOR";
default:
- abort();
+ return "<UNKNOWN>";
}
}