diff options
author | Derek Schuff <dschuff@chromium.org> | 2017-01-31 16:27:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-31 16:27:50 -0800 |
commit | 7bc8f14d8699f56777a763f99ad8098fcf7c0583 (patch) | |
tree | c838d496b731f846362328076f87a4da364c4065 /src/passes/DuplicateFunctionElimination.cpp | |
parent | 64284970344ce5463adada38e348230256b31226 (diff) | |
download | binaryen-7bc8f14d8699f56777a763f99ad8098fcf7c0583.tar.gz binaryen-7bc8f14d8699f56777a763f99ad8098fcf7c0583.tar.bz2 binaryen-7bc8f14d8699f56777a763f99ad8098fcf7c0583.zip |
Make ast_utils into a library (#892)
Split ExpressionAnalyzer and ExpressionManipulator into cpp files, and turn their giant template functions into simple functions which take a callback.
More organization, fewer mammoth headers, makes the build a few seconds faster, and the binaries a couple MB smaller.
Diffstat (limited to 'src/passes/DuplicateFunctionElimination.cpp')
-rw-r--r-- | src/passes/DuplicateFunctionElimination.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/passes/DuplicateFunctionElimination.cpp b/src/passes/DuplicateFunctionElimination.cpp index 8e8342729..ee7fbb2a5 100644 --- a/src/passes/DuplicateFunctionElimination.cpp +++ b/src/passes/DuplicateFunctionElimination.cpp @@ -20,9 +20,10 @@ // identical when finally lowered into concrete wasm code. // -#include <wasm.h> -#include <pass.h> -#include <ast_utils.h> +#include "wasm.h" +#include "pass.h" +#include "ast_utils.h" +#include "support/hash.h" namespace wasm { @@ -181,4 +182,3 @@ Pass *createDuplicateFunctionEliminationPass() { } } // namespace wasm - |