This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Assembler: Improve section parsing.
ClosedPublic

Authored by aardappel on Jun 28 2019, 11:33 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

aardappel created this revision.Jun 28 2019, 11:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2019, 11:33 AM
sbc100 accepted this revision.Jun 28 2019, 11:42 AM
sbc100 added inline comments.
lib/MC/MCParser/WasmAsmParser.cpp
163 ↗(On Diff #207115)

Can you explain why this code is not needed and the commend isn't needed anymore?

This revision is now accepted and ready to land.Jun 28 2019, 11:42 AM
aardappel marked an inline comment as done.Jun 28 2019, 11:50 AM
aardappel added inline comments.
lib/MC/MCParser/WasmAsmParser.cpp
163 ↗(On Diff #207115)

The section type parsing was actually duplicated code: the exact same thing is done by the StringSwitch above.

The "just ignore this section" is turned into an error, that was originally not an error just to get things going, but now I want to be more exact about our error checking and what we support.

This revision was automatically updated to reflect the committed changes.