summaryrefslogtreecommitdiff
path: root/src/passes/NameList.cpp
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2016-06-11 01:08:30 +0300
committerAlon Zakai <alonzakai@gmail.com>2016-06-21 16:44:14 -0700
commit41689a5dde63c96eb1bf7daf50bc192979aa0452 (patch)
tree5d4e4ceb383b8d4db087dc78c0dc5297d6f876b0 /src/passes/NameList.cpp
parentcd788a1a62025fed3832672cb539dda4c4ce1329 (diff)
downloadbinaryen-41689a5dde63c96eb1bf7daf50bc192979aa0452.tar.gz
binaryen-41689a5dde63c96eb1bf7daf50bc192979aa0452.tar.bz2
binaryen-41689a5dde63c96eb1bf7daf50bc192979aa0452.zip
Add initialization functions for passes to avoid missing pass registration due to linker dead code elimination. Fixes #577.
Diffstat (limited to 'src/passes/NameList.cpp')
-rw-r--r--src/passes/NameList.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/passes/NameList.cpp b/src/passes/NameList.cpp
index ed0d1835a..85bac62e9 100644
--- a/src/passes/NameList.cpp
+++ b/src/passes/NameList.cpp
@@ -32,7 +32,9 @@ struct NameList : public Pass {
}
};
-static RegisterPass<NameList> registerPass("nm", "name list");
+Pass *createNameListPass() {
+ return new NameList();
+}
} // namespace wasm