diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-08-18 15:53:45 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-07 09:55:02 -0700 |
commit | 793863a5d0e2f864f46dac86baa8e12c63b5b004 (patch) | |
tree | 4415cc69c33f8ca5e1fcac451dcfd77c38803f81 /src/passes/Print.cpp | |
parent | 2e2e0241a10c0eccb89365c1b50217d6d0d3a386 (diff) | |
download | binaryen-793863a5d0e2f864f46dac86baa8e12c63b5b004.tar.gz binaryen-793863a5d0e2f864f46dac86baa8e12c63b5b004.tar.bz2 binaryen-793863a5d0e2f864f46dac86baa8e12c63b5b004.zip |
import kinds
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); |