diff options
Diffstat (limited to 'src/asm2wasm.h')
-rw-r--r-- | src/asm2wasm.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h index d4b4f8674..3f7206f4d 100644 --- a/src/asm2wasm.h +++ b/src/asm2wasm.h @@ -1068,10 +1068,10 @@ void Asm2WasmBuilder::processAsm(Ref ast) { passRunner.setValidateGlobally(false); } // run autodrop first, before optimizations - passRunner.add<AutoDrop>(); + passRunner.add(make_unique<AutoDrop>()); if (preprocessor.debugInfo) { // fix up debug info to better survive optimization - passRunner.add<AdjustDebugInfo>(); + passRunner.add(make_unique<AdjustDebugInfo>()); } // optimize relooper label variable usage at the wasm level, where it is // easy @@ -1680,7 +1680,7 @@ void Asm2WasmBuilder::processAsm(Ref ast) { } // finalizeCalls also does autoDrop, which is crucial for the non-optimizing // case, so that the output of the first pass is valid - passRunner.add<FinalizeCalls>(this); + passRunner.add(make_unique<FinalizeCalls>(this)); passRunner.add(ABI::getLegalizationPass(legalizeJavaScriptFFI ? ABI::LegalizationLevel::Full : ABI::LegalizationLevel::Minimal)); @@ -1697,11 +1697,11 @@ void Asm2WasmBuilder::processAsm(Ref ast) { if (preprocessor.debugInfo) { // we would have run this before if optimizing, do it now otherwise. must // precede ApplyDebugInfo - passRunner.add<AdjustDebugInfo>(); + passRunner.add(make_unique<AdjustDebugInfo>()); } } if (preprocessor.debugInfo) { - passRunner.add<ApplyDebugInfo>(); + passRunner.add(make_unique<ApplyDebugInfo>()); // FIXME maybe just remove the nops that were debuginfo nodes, if not // optimizing? passRunner.add("vacuum"); |