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

Method BlockSigToString

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

Source from the content-addressed store, hash-verified

570};
571
572std::string BinaryReaderObjdumpDisassemble::BlockSigToString(Type type) const {
573 if (type.IsIndex()) {
574 return StringPrintf("type[%d]", type.GetIndex());
575 } else if (type == Type::Void) {
576 return "";
577 } else {
578 return type.GetName();
579 }
580}
581
582Result BinaryReaderObjdumpDisassemble::OnOpcode(Opcode opcode) {
583 BinaryReaderObjdumpBase::OnOpcode(opcode);

Callers

nothing calls this directly

Calls 4

StringPrintfFunction · 0.85
IsIndexMethod · 0.80
GetIndexMethod · 0.80
GetNameMethod · 0.45

Tested by

no test coverage detected