summaryrefslogtreecommitdiff
path: root/src/ir/global-utils.h
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/global-utils.h
parent37999167bb333dd0b12d744af8e633897e65cff8 (diff)
downloadbinaryen-7f24fce21a92f2aed4a11745d27d5181798ba6cd.tar.gz
binaryen-7f24fce21a92f2aed4a11745d27d5181798ba6cd.tar.bz2
binaryen-7f24fce21a92f2aed4a11745d27d5181798ba6cd.zip
Modernize code to C++17 (#3104)
Diffstat (limited to 'src/ir/global-utils.h')
-rw-r--r--src/ir/global-utils.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ir/global-utils.h b/src/ir/global-utils.h
index 34c0e56cf..26aec7790 100644
--- a/src/ir/global-utils.h
+++ b/src/ir/global-utils.h
@@ -25,9 +25,8 @@
#include "literal.h"
#include "wasm.h"
-namespace wasm {
+namespace wasm::GlobalUtils {
-namespace GlobalUtils {
// find a global initialized to the value of an import, or null if no such
// global
inline Global*
@@ -76,8 +75,6 @@ inline bool canInitializeGlobal(Expression* curr) {
return false;
}
-} // namespace GlobalUtils
-
-} // namespace wasm
+} // namespace wasm::GlobalUtils
#endif // wasm_ir_global_h