diff options
author | Alon Zakai <alonzakai@gmail.com> | 2017-02-17 13:49:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-17 13:49:53 -0800 |
commit | d946d68963d4731020d7dc0e41f331e0ab89591c (patch) | |
tree | 8e49ed84673af01166cc7101959b1423824454f4 /src/passes/Print.cpp | |
parent | 359c6133b3d7d6451cf65f3edce0bcf319f9af22 (diff) | |
download | binaryen-d946d68963d4731020d7dc0e41f331e0ab89591c.tar.gz binaryen-d946d68963d4731020d7dc0e41f331e0ab89591c.tar.bz2 binaryen-d946d68963d4731020d7dc0e41f331e0ab89591c.zip |
clean up raw pointer import->functionType, make it a Name like everything else (#915)
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index e5ff03fae..9ead2aee7 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -558,7 +558,7 @@ struct PrintSExpression : public Visitor<PrintSExpression> { printText(o, curr->module.str) << ' '; printText(o, curr->base.str) << ' '; switch (curr->kind) { - case ExternalKind::Function: if (curr->functionType) visitFunctionType(curr->functionType, &curr->name); break; + case ExternalKind::Function: if (curr->functionType.is()) visitFunctionType(currModule->getFunctionType(curr->functionType), &curr->name); break; case ExternalKind::Table: printTableHeader(&currModule->table); break; case ExternalKind::Memory: printMemoryHeader(&currModule->memory); break; case ExternalKind::Global: o << "(global " << curr->name << ' ' << printWasmType(curr->globalType) << ")"; break; |