summaryrefslogtreecommitdiff
path: root/src/binary-reader-objdump.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/binary-reader-objdump.cc')
-rw-r--r--src/binary-reader-objdump.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/binary-reader-objdump.cc b/src/binary-reader-objdump.cc
index a96d4947..b1335f68 100644
--- a/src/binary-reader-objdump.cc
+++ b/src/binary-reader-objdump.cc
@@ -519,6 +519,8 @@ class BinaryReaderObjdumpDisassemble : public BinaryReaderObjdumpBase {
std::string BlockSigToString(Type type) const;
+ Result OnFunction(Index index, Index sig_index) override;
+
Result BeginFunctionBody(Index index, Offset size) override;
Result EndFunctionBody(Index index) override;
@@ -940,6 +942,12 @@ Result BinaryReaderObjdumpDisassemble::OnEndExpr() {
return Result::Ok;
}
+Result BinaryReaderObjdumpDisassemble::OnFunction(Index index,
+ Index sig_index) {
+ objdump_state_->function_types[index] = sig_index;
+ return Result::Ok;
+}
+
Result BinaryReaderObjdumpDisassemble::BeginFunctionBody(Index index,
Offset size) {
printf("%06" PRIzx " func[%" PRIindex "]", GetPrintOffset(state->offset),