MCPcopy Create free account
hub / github.com/WebAssembly/wabt / OnRelocCount

Method OnRelocCount

src/binary-reader-objdump.cc:227–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227Result BinaryReaderObjdumpBase::OnRelocCount(Index count, Index section_index) {
228 if (section_index >= section_types_.size()) {
229 err_stream_->Writef("invalid relocation section index: %" PRIindex "\n",
230 section_index);
231 reloc_section_ = BinarySection::Invalid;
232 return Result::Error;
233 }
234 reloc_section_ = section_types_[section_index];
235 return Result::Ok;
236}
237
238class BinaryReaderObjdumpPrepass : public BinaryReaderObjdumpBase {
239 public:

Callers

nothing calls this directly

Calls 3

GetSectionNameFunction · 0.85
sizeMethod · 0.45
WritefMethod · 0.45

Tested by

no test coverage detected