summaryrefslogtreecommitdiff
path: root/src/ir/table-utils.cpp
diff options
context:
space:
mode:
authorMax Graey <maxgraey@gmail.com>2021-11-23 07:03:25 +0200
committerGitHub <noreply@github.com>2021-11-22 21:03:25 -0800
commit7f24fce21a92f2aed4a11745d27d5181798ba6cd (patch)
tree80655dc933e3c2ae3ae53b7960cd71a6a022c3da /src/ir/table-utils.cpp
parent37999167bb333dd0b12d744af8e633897e65cff8 (diff)
downloadbinaryen-7f24fce21a92f2aed4a11745d27d5181798ba6cd.tar.gz
binaryen-7f24fce21a92f2aed4a11745d27d5181798ba6cd.tar.bz2
binaryen-7f24fce21a92f2aed4a11745d27d5181798ba6cd.zip
Modernize code to C++17 (#3104)
Diffstat (limited to 'src/ir/table-utils.cpp')
-rw-r--r--src/ir/table-utils.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ir/table-utils.cpp b/src/ir/table-utils.cpp
index 79b90d249..0d47f155b 100644
--- a/src/ir/table-utils.cpp
+++ b/src/ir/table-utils.cpp
@@ -19,9 +19,7 @@
#include "find_all.h"
#include "module-utils.h"
-namespace wasm {
-
-namespace TableUtils {
+namespace wasm::TableUtils {
std::set<Name> getFunctionsNeedingElemDeclare(Module& wasm) {
// Without reference types there are no ref.funcs or elem declare.
@@ -83,6 +81,4 @@ bool usesExpressions(ElementSegment* curr, Module* module) {
return !allElementsRefFunc || hasTableOfSpecializedType;
}
-} // namespace TableUtils
-
-} // namespace wasm
+} // namespace wasm::TableUtils