diff options
Diffstat (limited to 'src/binary-reader.cc')
-rw-r--r-- | src/binary-reader.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/binary-reader.cc b/src/binary-reader.cc index e377ae08..620a0c71 100644 --- a/src/binary-reader.cc +++ b/src/binary-reader.cc @@ -1330,6 +1330,14 @@ Result BinaryReader::ReadNameSection(Offset section_size) { read_end_ = subsection_end; switch (static_cast<NameSectionSubsection>(name_type)) { + case NameSectionSubsection::Module: + CALLBACK(OnModuleNameSubsection, i, name_type, subsection_size); + if (subsection_size) { + string_view name; + CHECK_RESULT(ReadStr(&name, "module name")); + CALLBACK(OnModuleName, name); + } + break; case NameSectionSubsection::Function: CALLBACK(OnFunctionNameSubsection, i, name_type, subsection_size); if (subsection_size) { |