Index: src/asmjs/asm-wasm-builder.cc |
diff --git a/src/asmjs/asm-wasm-builder.cc b/src/asmjs/asm-wasm-builder.cc |
index 47545876b1afc82170347375869d8693485c637f..89fa58679c452e1a85520b645b992aed40f48ede 100644 |
--- a/src/asmjs/asm-wasm-builder.cc |
+++ b/src/asmjs/asm-wasm-builder.cc |
@@ -564,8 +564,7 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> { |
Variable* var = expr->var(); |
DCHECK(var->is_function()); |
WasmFunctionBuilder* function = LookupOrInsertFunction(var); |
- function->SetExported(); |
- function->SetName( |
+ function->SetExportedWithName( |
titzer
2016/10/11 08:08:48
How about ExportAs()?
(we should work incremental
Clemens Hammacher
2016/10/11 08:21:54
Is SetExportedAs better?
IMHO Export() and ExportA
titzer
2016/10/11 08:36:03
Indeed, it does a memcpy of the underlying name an
|
AsmWasmBuilder::single_function_name, |
static_cast<int>(strlen(AsmWasmBuilder::single_function_name))); |
} |