Skip to content

Commit 1bd107f

Browse files
committed
[NFC][wasm-reduce] Split out DestructiveReducer
The Reducer class used to do double duty providing general reducer utilities and also walking the module to do destructive reduction. Split the module walking part into a new DestructiveReducer class so the Reducer class providing general utilities can be reasonably reused by new reducer classes in the future.
1 parent 7195017 commit 1bd107f

File tree

5 files changed

+914
-860
lines changed

5 files changed

+914
-860
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
FILE(GLOB wasm_reduce_HEADERS *h)
22
set(wasm_reduce_SOURCES
3-
wasm-reduce.cpp
3+
destructive-reducer.cpp
44
reducer.cpp
5+
wasm-reduce.cpp
56
${wasm_reduce_HEADERS}
67
)
78
binaryen_add_executable(wasm-reduce "${wasm_reduce_SOURCES}")

0 commit comments

Comments
 (0)