Skip to content

Commit 757716f

Browse files
authored
Update module.cpp
1 parent d9685f8 commit 757716f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extension/module/module.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ runtime::Error Module::load(const runtime::Program::Verification verification) {
164164
return runtime::Error::Ok;
165165
}
166166

167+
runtime::Result<size_t> Module::num_methods() {
168+
ET_CHECK_OK_OR_RETURN_ERROR(load());
169+
return program_->num_methods();
170+
}
171+
167172
runtime::Result<std::unordered_set<std::string>> Module::method_names() {
168173
ET_CHECK_OK_OR_RETURN_ERROR(load());
169174
const auto method_count = program_->num_methods();

0 commit comments

Comments
 (0)