diff options
author | Heejin Ahn <aheejin@gmail.com> | 2023-06-13 09:34:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-13 09:34:31 -0700 |
commit | d035c05e0e2b1aa6fc1f683b32924fc90f17b994 (patch) | |
tree | 154e480e6b4dd9f06ef02e3d164303731d8ecdad /src/wasm/wasm-io.cpp | |
parent | 585af93ec6a22feb8954bc118f0bff997d1fc165 (diff) | |
download | binaryen-d035c05e0e2b1aa6fc1f683b32924fc90f17b994.tar.gz binaryen-d035c05e0e2b1aa6fc1f683b32924fc90f17b994.tar.bz2 binaryen-d035c05e0e2b1aa6fc1f683b32924fc90f17b994.zip |
Rename WasmBinaryBuilder to WasmBinaryReader (NFC) (#5767)
We have `WasmBinaryBuilder` that read binary into Binaryen IR and
`WasmBinaryWriter` that writes Binaryen IR to binary. To me
`WasmBinaryBuilder` sounds similar to `WasmBinaryWriter`, which builds
binary. How about renaming it to `WasmBinaryReader`?
Diffstat (limited to 'src/wasm/wasm-io.cpp')
-rw-r--r-- | src/wasm/wasm-io.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm-io.cpp b/src/wasm/wasm-io.cpp index b544046f6..65e6a982a 100644 --- a/src/wasm/wasm-io.cpp +++ b/src/wasm/wasm-io.cpp @@ -63,7 +63,7 @@ void ModuleReader::readBinaryData(std::vector<char>& input, std::unique_ptr<std::ifstream> sourceMapStream; // Assume that the wasm has had its initial features applied, and use those // while parsing. - WasmBinaryBuilder parser(wasm, wasm.features, input); + WasmBinaryReader parser(wasm, wasm.features, input); parser.setDebugInfo(debugInfo); parser.setDWARF(DWARF); parser.setSkipFunctionBodies(skipFunctionBodies); |