summaryrefslogtreecommitdiff
path: root/src/binary-writer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-writer.cc')
-rw-r--r--src/binary-writer.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/binary-writer.cc b/src/binary-writer.cc
index bd285599..6c0a73db 100644
--- a/src/binary-writer.cc
+++ b/src/binary-writer.cc
@@ -915,6 +915,15 @@ Result BinaryWriter::WriteModule() {
}
break;
}
+
+ case TypeEntryKind::Array: {
+ const ArrayType* array_type = cast<ArrayType>(type);
+ WriteHeader("array type", i);
+ WriteType(stream_, Type::Array);
+ WriteType(stream_, array_type->field.type);
+ stream_->WriteU8(array_type->field.mutable_, "field mutability");
+ break;
+ }
}
}
EndSection();