From 7f24fce21a92f2aed4a11745d27d5181798ba6cd Mon Sep 17 00:00:00 2001 From: Max Graey Date: Tue, 23 Nov 2021 07:03:25 +0200 Subject: Modernize code to C++17 (#3104) --- src/ir/memory-utils.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/ir/memory-utils.h') diff --git a/src/ir/memory-utils.h b/src/ir/memory-utils.h index 432fed0aa..3a0862cd7 100644 --- a/src/ir/memory-utils.h +++ b/src/ir/memory-utils.h @@ -25,9 +25,8 @@ #include "wasm-builder.h" #include "wasm.h" -namespace wasm { +namespace wasm::MemoryUtils { -namespace MemoryUtils { // Flattens memory into a single data segment, or no segment. If there is // a segment, it starts at 0. // If ensuredSegmentSize is provided, then a segment is always emitted, @@ -198,8 +197,6 @@ inline bool ensureLimitedSegments(Module& module) { memory.segments.swap(mergedSegments); return true; } -} // namespace MemoryUtils - -} // namespace wasm +} // namespace wasm::MemoryUtils #endif // wasm_ir_memory_h -- cgit v1.2.3