summaryrefslogtreecommitdiff
path: root/src/binary.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary.cc')
-rw-r--r--src/binary.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/binary.cc b/src/binary.cc
index 60b20cbb..96103b4a 100644
--- a/src/binary.cc
+++ b/src/binary.cc
@@ -42,6 +42,7 @@ const char* GetSectionName(BinarySection sec) {
}
}
+// clang-format off
const char* NameSubsectionName[] = {
"module",
"function",
@@ -53,9 +54,14 @@ const char* NameSubsectionName[] = {
"global",
"elemseg",
"dataseg",
+ "tag",
};
+// clang-format on
const char* GetNameSectionSubsectionName(NameSectionSubsection subsec) {
+ static_assert(WABT_ENUM_COUNT(NameSectionSubsection) ==
+ WABT_ARRAY_SIZE(NameSubsectionName),
+ "Malformed ExprTypeName array");
return NameSubsectionName[size_t(subsec)];
}