summaryrefslogtreecommitdiff
path: root/src/ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir.h')
-rw-r--r--src/ir.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ir.h b/src/ir.h
index 39c065ea..0db30a6c 100644
--- a/src/ir.h
+++ b/src/ir.h
@@ -684,6 +684,11 @@ struct Module {
Exception* GetExcept(const Var&) const;
Index GetExceptIndex(const Var&) const;
+ bool IsImport(ExternalKind kind, const Var&) const;
+ bool IsImport(const Export& export_) const {
+ return IsImport(export_.kind, export_.var);
+ }
+
// TODO(binji): move this into a builder class?
void AppendField(std::unique_ptr<DataSegmentModuleField>);
void AppendField(std::unique_ptr<ElemSegmentModuleField>);