This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly][lld] Don't mark a file live from an undefine symbol
ClosedPublic

Authored by dschuff on Dec 17 2020, 10:27 AM.

Details

Reviewers
sbc100
Summary

Live symbols should only cause the files in which they are defined
to become live.
Fixes PR48156

For now this is only tested in emscripten: we're continuing
to work on reducing the test case further for an lld-style
unit test.

Diff Detail

Event Timeline

dschuff created this revision.Dec 17 2020, 10:27 AM
dschuff requested review of this revision.Dec 17 2020, 10:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 17 2020, 10:27 AM
dschuff edited the summary of this revision. (Show Details)Dec 17 2020, 10:27 AM
sbc100 accepted this revision.Dec 17 2020, 10:40 AM

lgtm .. assuming we do eventually figure out how to trigger this using a unit test. I generally agree with you that it rather strange that ::markLive is called at all on an undefined synbol.

This revision is now accepted and ready to land.Dec 17 2020, 10:40 AM