summaryrefslogtreecommitdiff
path: root/src/passes/LogExecution.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/LogExecution.cpp')
-rw-r--r--src/passes/LogExecution.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/passes/LogExecution.cpp b/src/passes/LogExecution.cpp
index 7bfee7c24..611f79dfd 100644
--- a/src/passes/LogExecution.cpp
+++ b/src/passes/LogExecution.cpp
@@ -30,7 +30,6 @@
#include "asm_v_wasm.h"
#include "asmjs/shared-constants.h"
-#include "ir/function-type-utils.h"
#include "shared-constants.h"
#include <pass.h>
#include <wasm-builder.h>
@@ -63,9 +62,7 @@ struct LogExecution : public WalkerPass<PostWalker<LogExecution>> {
import->name = LOGGER;
import->module = ENV;
import->base = LOGGER;
- auto* functionType = ensureFunctionType("vi", curr);
- import->type = functionType->name;
- FunctionTypeUtils::fillFunction(import, functionType);
+ import->sig = Signature(Type::i32, Type::none);
curr->addFunction(import);
}