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

Method SetBlockDeclaration

src/binary-reader-ir.cc:494–504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494void BinaryReaderIR::SetBlockDeclaration(BlockDeclaration* decl,
495 Type sig_type) {
496 if (sig_type.IsIndex()) {
497 Index type_index = sig_type.GetIndex();
498 SetFuncDeclaration(decl, Var(type_index, GetLocation()));
499 } else {
500 decl->has_func_type = false;
501 decl->sig.param_types.clear();
502 decl->sig.result_types = sig_type.GetInlineVector();
503 }
504}
505
506std::string BinaryReaderIR::GetUniqueName(BindingHash* bindings,
507 const std::string& orig_name) {

Callers

nothing calls this directly

Calls 5

IsIndexMethod · 0.80
GetIndexMethod · 0.80
GetInlineVectorMethod · 0.80
VarClass · 0.50
clearMethod · 0.45

Tested by

no test coverage detected