diff options
Diffstat (limited to 'src/binary-reader-objdump.cc')
-rw-r--r-- | src/binary-reader-objdump.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/binary-reader-objdump.cc b/src/binary-reader-objdump.cc index 7e32def6..e21a7ff9 100644 --- a/src/binary-reader-objdump.cc +++ b/src/binary-reader-objdump.cc @@ -732,6 +732,7 @@ class BinaryReaderObjdump : public BinaryReaderObjdumpBase { Index result_count, Type* result_types) override; Result OnStructType(Index index, Index field_count, TypeMut* fields) override; + Result OnArrayType(Index index, TypeMut field) override; Result OnImportCount(Index count) override; Result OnImportFunc(Index import_index, @@ -1088,6 +1089,22 @@ Result BinaryReaderObjdump::OnStructType(Index index, return Result::Ok; } +Result BinaryReaderObjdump::OnArrayType(Index index, TypeMut field) { + if (!ShouldPrintDetails()) { + return Result::Ok; + } + printf(" - type[%" PRIindex "] (array", index); + if (field.mutable_) { + printf(" (mut"); + } + printf(" %s", field.type.GetName()); + if (field.mutable_) { + printf(")"); + } + printf(")\n"); + return Result::Ok; +} + Result BinaryReaderObjdump::OnFunctionCount(Index count) { return OnCount(count); } |