diff options
Diffstat (limited to 'src/passes/ConstHoisting.cpp')
-rw-r--r-- | src/passes/ConstHoisting.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/passes/ConstHoisting.cpp b/src/passes/ConstHoisting.cpp index 8349e7234..1caf0eb28 100644 --- a/src/passes/ConstHoisting.cpp +++ b/src/passes/ConstHoisting.cpp @@ -30,12 +30,11 @@ // <= 1 byte to declare the local and 2-3 to use it! // -#include <map> - -#include <pass.h> -#include <wasm-binary.h> -#include <wasm-builder.h> -#include <wasm.h> +#include "pass.h" +#include "support/insert_ordered.h" +#include "wasm-binary.h" +#include "wasm-builder.h" +#include "wasm.h" namespace wasm { @@ -47,7 +46,7 @@ struct ConstHoisting : public WalkerPass<PostWalker<ConstHoisting>> { Pass* create() override { return new ConstHoisting; } - std::map<Literal, std::vector<Expression**>> uses; + InsertOrderedMap<Literal, std::vector<Expression**>> uses; void visitConst(Const* curr) { uses[curr->value].push_back(getCurrentPointer()); |