summaryrefslogtreecommitdiff
path: root/src/passes/JSPI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/JSPI.cpp')
-rw-r--r--src/passes/JSPI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/passes/JSPI.cpp b/src/passes/JSPI.cpp
index fe24d60f7..48f6207ed 100644
--- a/src/passes/JSPI.cpp
+++ b/src/passes/JSPI.cpp
@@ -88,7 +88,7 @@ struct JSPI : public Pass {
private:
Name makeWrapperForExport(Function* func, Module* module, Name suspender) {
Name wrapperName = Names::getValidFunctionName(
- *module, std::string("export$") + func->name.str);
+ *module, std::string("export$") + func->name.toString());
Builder builder(*module);
@@ -137,7 +137,7 @@ private:
Builder builder(*module);
auto wrapperIm = make_unique<Function>();
wrapperIm->name = Names::getValidFunctionName(
- *module, std::string("import$") + im->name.str);
+ *module, std::string("import$") + im->name.toString());
wrapperIm->module = im->module;
wrapperIm->base = im->base;
auto stub = make_unique<Function>();