diff options
Diffstat (limited to 'src/passes')
-rw-r--r-- | src/passes/Asyncify.cpp | 2 | ||||
-rw-r--r-- | src/passes/DeadArgumentElimination.cpp | 2 | ||||
-rw-r--r-- | src/passes/Inlining.cpp | 2 | ||||
-rw-r--r-- | src/passes/LoopInvariantCodeMotion.cpp | 2 | ||||
-rw-r--r-- | src/passes/Metrics.cpp | 2 | ||||
-rw-r--r-- | src/passes/ReReloop.cpp | 2 | ||||
-rw-r--r-- | src/passes/RemoveUnusedBrs.cpp | 2 | ||||
-rw-r--r-- | src/passes/RemoveUnusedModuleElements.cpp | 2 | ||||
-rw-r--r-- | src/passes/ReorderFunctions.cpp | 2 | ||||
-rw-r--r-- | src/passes/SimplifyLocals.cpp | 2 | ||||
-rw-r--r-- | src/passes/SpillPointers.cpp | 2 | ||||
-rw-r--r-- | src/passes/Strip.cpp | 2 |
12 files changed, 12 insertions, 12 deletions
diff --git a/src/passes/Asyncify.cpp b/src/passes/Asyncify.cpp index 9be731d06..df292317a 100644 --- a/src/passes/Asyncify.cpp +++ b/src/passes/Asyncify.cpp @@ -520,7 +520,7 @@ class ModuleAnalyzer { bool addedFromList = false; }; - typedef std::map<Function*, Info> Map; + using Map = std::map<Function*, Info>; Map map; public: diff --git a/src/passes/DeadArgumentElimination.cpp b/src/passes/DeadArgumentElimination.cpp index b84ebddd5..d319340b8 100644 --- a/src/passes/DeadArgumentElimination.cpp +++ b/src/passes/DeadArgumentElimination.cpp @@ -84,7 +84,7 @@ struct DAEFunctionInfo { DAEFunctionInfo() { hasUnseenCalls = false; } }; -typedef std::unordered_map<Name, DAEFunctionInfo> DAEFunctionInfoMap; +using DAEFunctionInfoMap = std::unordered_map<Name, DAEFunctionInfo>; struct DAEScanner : public WalkerPass<PostWalker<DAEScanner, Visitor<DAEScanner>>> { diff --git a/src/passes/Inlining.cpp b/src/passes/Inlining.cpp index 90cf3f5da..0c95dc4b4 100644 --- a/src/passes/Inlining.cpp +++ b/src/passes/Inlining.cpp @@ -133,7 +133,7 @@ static bool canHandleParams(Function* func) { return true; } -typedef std::unordered_map<Name, FunctionInfo> NameInfoMap; +using NameInfoMap = std::unordered_map<Name, FunctionInfo>; struct FunctionInfoScanner : public WalkerPass<PostWalker<FunctionInfoScanner>> { diff --git a/src/passes/LoopInvariantCodeMotion.cpp b/src/passes/LoopInvariantCodeMotion.cpp index 61c85d8a4..1329c02a1 100644 --- a/src/passes/LoopInvariantCodeMotion.cpp +++ b/src/passes/LoopInvariantCodeMotion.cpp @@ -41,7 +41,7 @@ struct LoopInvariantCodeMotion return std::make_unique<LoopInvariantCodeMotion>(); } - typedef std::unordered_set<LocalSet*> LoopSets; + using LoopSets = std::unordered_set<LocalSet*>; // main entry point diff --git a/src/passes/Metrics.cpp b/src/passes/Metrics.cpp index 35b4241b2..d2e072a6f 100644 --- a/src/passes/Metrics.cpp +++ b/src/passes/Metrics.cpp @@ -24,7 +24,7 @@ namespace wasm { -typedef std::map<const char*, int> Counts; +using Counts = std::map<const char*, int>; static Counts lastCounts; diff --git a/src/passes/ReReloop.cpp b/src/passes/ReReloop.cpp index 9fef75367..1e039002d 100644 --- a/src/passes/ReReloop.cpp +++ b/src/passes/ReReloop.cpp @@ -102,7 +102,7 @@ struct ReReloop final : public Pass { virtual void run() { WASM_UNREACHABLE("unimpl"); } }; - typedef std::shared_ptr<Task> TaskPtr; + using TaskPtr = std::shared_ptr<Task>; std::vector<TaskPtr> stack; struct TriageTask final : public Task { diff --git a/src/passes/RemoveUnusedBrs.cpp b/src/passes/RemoveUnusedBrs.cpp index e0f82b4a4..f465d46c1 100644 --- a/src/passes/RemoveUnusedBrs.cpp +++ b/src/passes/RemoveUnusedBrs.cpp @@ -123,7 +123,7 @@ struct RemoveUnusedBrs : public WalkerPass<PostWalker<RemoveUnusedBrs>> { bool anotherCycle; - typedef std::vector<Expression**> Flows; + using Flows = std::vector<Expression**>; // list of breaks that are currently flowing. if they reach their target // without interference, they can be removed (or their value forwarded TODO) diff --git a/src/passes/RemoveUnusedModuleElements.cpp b/src/passes/RemoveUnusedModuleElements.cpp index 9449f9034..7feda6f05 100644 --- a/src/passes/RemoveUnusedModuleElements.cpp +++ b/src/passes/RemoveUnusedModuleElements.cpp @@ -35,7 +35,7 @@ namespace wasm { // TODO: Add data segment, multiple memories (#5224) enum class ModuleElementKind { Function, Global, Tag, Table, ElementSegment }; -typedef std::pair<ModuleElementKind, Name> ModuleElement; +using ModuleElement = std::pair<ModuleElementKind, Name>; // Finds reachabilities // TODO: use Effects to determine if a memory is used diff --git a/src/passes/ReorderFunctions.cpp b/src/passes/ReorderFunctions.cpp index 6c8c55075..eaff3ac03 100644 --- a/src/passes/ReorderFunctions.cpp +++ b/src/passes/ReorderFunctions.cpp @@ -35,7 +35,7 @@ namespace wasm { -typedef std::unordered_map<Name, std::atomic<Index>> NameCountMap; +using NameCountMap = std::unordered_map<Name, std::atomic<Index>>; struct CallCountScanner : public WalkerPass<PostWalker<CallCountScanner>> { bool isFunctionParallel() override { return true; } diff --git a/src/passes/SimplifyLocals.cpp b/src/passes/SimplifyLocals.cpp index 7e3b33824..07527ee14 100644 --- a/src/passes/SimplifyLocals.cpp +++ b/src/passes/SimplifyLocals.cpp @@ -86,7 +86,7 @@ struct SimplifyLocals }; // a list of sinkables in a linear execution trace - typedef std::map<Index, SinkableInfo> Sinkables; + using Sinkables = std::map<Index, SinkableInfo>; // locals in current linear execution trace, which we try to sink Sinkables sinkables; diff --git a/src/passes/SpillPointers.cpp b/src/passes/SpillPointers.cpp index 991a7b8c1..f496b8c79 100644 --- a/src/passes/SpillPointers.cpp +++ b/src/passes/SpillPointers.cpp @@ -71,7 +71,7 @@ struct SpillPointers } // map pointers to their offset in the spill area - typedef std::unordered_map<Index, Index> PointerMap; + using PointerMap = std::unordered_map<Index, Index>; Type pointerType; diff --git a/src/passes/Strip.cpp b/src/passes/Strip.cpp index 00cd87ae0..fe3476202 100644 --- a/src/passes/Strip.cpp +++ b/src/passes/Strip.cpp @@ -31,7 +31,7 @@ struct Strip : public Pass { bool requiresNonNullableLocalFixups() override { return false; } // A function that returns true if the method should be removed. - typedef std::function<bool(UserSection&)> Decider; + using Decider = std::function<bool(UserSection&)>; Decider decider; Strip(Decider decider) : decider(decider) {} |