diff options
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 0152f917c..e9e70c1b0 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -534,6 +534,13 @@ struct PrintSExpression : public Visitor<PrintSExpression> { } void visitImport(Import *curr) { printOpening(o, "import "); + switch (curr->kind) { + case Export::Function: break; + case Export::Table: o << "table "; break; + case Export::Memory: o << "memory "; break; + case Export::Global: o << "global "; break; + default: WASM_UNREACHABLE(); + } printName(curr->name) << ' '; printText(o, curr->module.str) << ' '; printText(o, curr->base.str); |