diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2021-12-07 11:26:18 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-07 19:26:18 +0000 |
commit | 756f90b4bb91e842ca8c49f30062c4b7af97010d (patch) | |
tree | fbe36399e8a402128dc31fbe8765cd15939e7da5 /src/wasm2js.h | |
parent | d0688359cacd50ce11858f8a22411ebce87d872d (diff) | |
download | binaryen-756f90b4bb91e842ca8c49f30062c4b7af97010d.tar.gz binaryen-756f90b4bb91e842ca8c49f30062c4b7af97010d.tar.bz2 binaryen-756f90b4bb91e842ca8c49f30062c4b7af97010d.zip |
[NFC] Deduplicate Store insertion logic (#4374)
Types and HeapTypes are inserted into their respective stores either by copying
a reference to a `TypeInfo` or `HeapTypeInfo` or by moving a
`std::unique_ptr<TypeInfo>` or `std::unique_ptr<HeapTypeInfo>`. Previously these
two code paths had separate, similar logic. To reduce deduplication, combine
both code paths into a single method.
Diffstat (limited to 'src/wasm2js.h')
0 files changed, 0 insertions, 0 deletions