diff options
author | Max Graey <maxgraey@gmail.com> | 2021-11-23 07:03:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-22 21:03:25 -0800 |
commit | 7f24fce21a92f2aed4a11745d27d5181798ba6cd (patch) | |
tree | 80655dc933e3c2ae3ae53b7960cd71a6a022c3da /src/ir/memory-utils.h | |
parent | 37999167bb333dd0b12d744af8e633897e65cff8 (diff) | |
download | binaryen-7f24fce21a92f2aed4a11745d27d5181798ba6cd.tar.gz binaryen-7f24fce21a92f2aed4a11745d27d5181798ba6cd.tar.bz2 binaryen-7f24fce21a92f2aed4a11745d27d5181798ba6cd.zip |
Modernize code to C++17 (#3104)
Diffstat (limited to 'src/ir/memory-utils.h')
-rw-r--r-- | src/ir/memory-utils.h | 7 |
1 files changed, 2 insertions, 5 deletions
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 |