This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Fixed LLD generation of 64-bit __wasm_apply_data_relocs
ClosedPublic

Authored by aardappel on Jul 12 2021, 6:05 PM.

Diff Detail

Event Timeline

aardappel created this revision.Jul 12 2021, 6:05 PM
aardappel requested review of this revision.Jul 12 2021, 6:05 PM
sbc100 accepted this revision.Jul 13 2021, 8:58 AM
sbc100 added inline comments.
lld/wasm/SyntheticSections.cpp
187

Elsewhere in the code I see this pattern:

wasmGlobal.Type = {uint8_t(is64 ? WASM_TYPE_I64 : WASM_TYPE_I32), isMutable};

Can we declare a function-scope is64 and use it like this? (especially since config->is64.getValueOr(false) is also used above in this function)

This revision is now accepted and ready to land.Jul 13 2021, 8:58 AM
aardappel updated this revision to Diff 359031.Jul 15 2021, 9:59 AM
aardappel marked an inline comment as done.

factored out repeating use of is64

This revision was landed with ongoing or failed builds.Jul 15 2021, 10:02 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 15 2021, 10:02 AM