This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Change prefix on data segment flags to WASM_DATA_SEGMENT
ClosedPublic

Authored by wingo on Nov 30 2020, 6:06 AM.

Details

Summary

Element sections will also need flags, so we shouldn't squat the
WASM_SEGMENT namespace.

Depends on D90948.

Diff Detail

Event Timeline

wingo created this revision.Nov 30 2020, 6:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 30 2020, 6:06 AM
wingo requested review of this revision.Nov 30 2020, 6:06 AM

I wonder though if we can share the same set of flags for both? Don't table elem and data elem segment share the same set of flags?

wingo added a comment.Jan 18 2021, 8:09 AM

This one is ready for review; a simple renaming to prepare for WASM_ELEMENT_SEGMENT flags in D92321. NFC.

sbc100 accepted this revision.Jan 18 2021, 8:11 AM
sbc100 added inline comments.
llvm/include/llvm/BinaryFormat/Wasm.h
151

Shall we move the comments onto the above line rather than splitting like this?

This revision is now accepted and ready to land.Jan 18 2021, 8:11 AM
wingo updated this revision to Diff 317475.Jan 19 2021, 12:41 AM

Reformat comments on WasmDataSegment

llvm/include/llvm/BinaryFormat/Wasm.h
151

Done, tx. (I love clang-format but i also get to blame it in this case!)

This revision was landed with ongoing or failed builds.Jan 19 2021, 12:42 AM
This revision was automatically updated to reflect the committed changes.