This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Don't create MSSymbolWasm object for non-symbols
ClosedPublic

Authored by sbc100 on Feb 20 2019, 6:35 PM.

Details

Summary

__linear_memory and __indirect_function_table are both generated
as imports in wasm object files but are actually symbols and don't
appear in any symbols table or relocation entry. Indeed we
don't have any symbol type to meaningfully represent either of them.

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Feb 20 2019, 6:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 20 2019, 6:35 PM
tlively accepted this revision.Feb 20 2019, 8:47 PM

LGTM. Makes me wonder why it was ever done the other way.

This revision is now accepted and ready to land.Feb 20 2019, 8:47 PM

LGTM. Makes me wonder why it was ever done the other way.

Sorry I know this messes with you open PR.. should I hold of committing this until we reach consensus on your change?

LGTM. Makes me wonder why it was ever done the other way.

Sorry I know this messes with you open PR.. should I hold of committing this until we reach consensus on your change?

No need to wait. My PR can easily be updated to be rebased on top of this change.

This revision was automatically updated to reflect the committed changes.