https://github.com/WebAssembly/exception-handling/issues/98
Also this moves many parts of code to make code align with the section
order, even if they don't affect the output.
Paths
| Differential D76752
[WebAssembly] Move event section before global section ClosedPublic Authored by aheejin on Mar 24 2020, 8:48 PM.
Details Summary https://github.com/WebAssembly/exception-handling/issues/98 Also this moves many parts of code to make code align with the section
Diff Detail
Event Timelineaheejin added inline comments. Comment Actions LGTM!
This revision is now accepted and ready to land.Mar 25 2020, 10:53 AM aheejin retitled this revision from Move event section before global section to [WebAssembly] Move event section before global section.Mar 25 2020, 11:18 AM Closed by commit rGf93426c5b964: [WebAssembly] Move event section before global section (authored by aheejin). · Explain WhyMar 25 2020, 11:54 AM This revision was automatically updated to reflect the committed changes. Comment Actions V8 validation fails without this. I'm not sure if there's a way test v8 validation w/ LLVM unit tests? Comment Actions Even without running V8 or some other external validator, I agree it's surprising that the change in section order did not cause any tests to change. I guess most of our tests just look at a single section rather than a sequence of sections? And most don't have an events section at all. Comment Actions Hmm, come to think of it, I can add a test change that cannot run without this change after all. Thanks for suggestions. Done in D76823.
Revision Contents
Diff 252643 lld/wasm/SyntheticSections.h
lld/wasm/SyntheticSections.cpp
lld/wasm/Writer.cpp
llvm/include/llvm/Object/Wasm.h
llvm/include/llvm/ObjectYAML/WasmYAML.h
llvm/lib/Object/WasmObjectFile.cpp
llvm/lib/ObjectYAML/WasmEmitter.cpp
llvm/lib/ObjectYAML/WasmYAML.cpp
llvm/tools/obj2yaml/wasm2yaml.cpp
|
Hmm, clang-format makes this look ugly, and I think I remember you decided not to format this code intentionally before, but having consistent style throughtout wasm code is also better. WDYT? @tlively