From 236296d8563e0f90c3b57f32f1f8f63bac414b89 Mon Sep 17 00:00:00 2001 From: Max Graey Date: Tue, 10 Nov 2020 23:04:16 +0200 Subject: [wasm2js] Use native JavaScript Math.trunc (#3329) --- src/passes/RemoveNonJSOps.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/passes/RemoveNonJSOps.cpp') diff --git a/src/passes/RemoveNonJSOps.cpp b/src/passes/RemoveNonJSOps.cpp index abd3526c4..08e6e6482 100644 --- a/src/passes/RemoveNonJSOps.cpp +++ b/src/passes/RemoveNonJSOps.cpp @@ -299,13 +299,6 @@ struct RemoveNonJSOpsPass : public WalkerPass> { functionCall = WASM_NEAREST_F64; break; - case TruncFloat32: - functionCall = WASM_TRUNC_F32; - break; - case TruncFloat64: - functionCall = WASM_TRUNC_F64; - break; - case PopcntInt64: functionCall = WASM_POPCNT64; break; -- cgit v1.2.3