diff options
Diffstat (limited to 'src/ir')
-rw-r--r-- | src/ir/equivalent_sets.h | 2 | ||||
-rw-r--r-- | src/ir/module-utils.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/ir/equivalent_sets.h b/src/ir/equivalent_sets.h index 657ff9894..4b2cd7db7 100644 --- a/src/ir/equivalent_sets.h +++ b/src/ir/equivalent_sets.h @@ -26,7 +26,7 @@ namespace wasm { // struct EquivalentSets { // A set of indexes. This is ordered for deterministic iteration. - typedef std::set<Index> Set; + using Set = std::set<Index>; std::unordered_map<Index, std::shared_ptr<Set>> indexSets; diff --git a/src/ir/module-utils.h b/src/ir/module-utils.h index cdafa9c8c..f68e2a961 100644 --- a/src/ir/module-utils.h +++ b/src/ir/module-utils.h @@ -368,10 +368,10 @@ template<typename T, struct ParallelFunctionAnalysis { Module& wasm; - typedef MapT<Function*, T> Map; + using Map = MapT<Function*, T>; Map map; - typedef std::function<void(Function*, T&)> Func; + using Func = std::function<void(Function*, T&)>; ParallelFunctionAnalysis(Module& wasm, Func work) : wasm(wasm) { // Fill in map, as we operate on it in parallel (each function to its own @@ -438,10 +438,10 @@ template<typename T> struct CallGraphPropertyAnalysis { bool hasNonDirectCall = false; }; - typedef std::map<Function*, T> Map; + using Map = std::map<Function*, T>; Map map; - typedef std::function<void(Function*, T&)> Func; + using Func = std::function<void(Function*, T&)>; CallGraphPropertyAnalysis(Module& wasm, Func work) : wasm(wasm) { ParallelFunctionAnalysis<T> analysis(wasm, [&](Function* func, T& info) { |