This is an archive of the discontinued LLVM Phabricator instance.

[lld][WebAssembly] Process stub libraries in a loop
ClosedPublic

Authored by sbc100 on Jun 21 2023, 1:50 PM.

Details

Summary

When stub libraries trigger the fetching of new object files we can
potentially introduce new undefined symbols so process the stub in
loop until no new objects are pulled in.

Diff Detail

Event Timeline

sbc100 created this revision.Jun 21 2023, 1:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2023, 1:50 PM
Herald added subscribers: pmatos, asb, wingo and 3 others. · View Herald Transcript
sbc100 requested review of this revision.Jun 21 2023, 1:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2023, 1:50 PM
sbc100 updated this revision to Diff 549434.Aug 11 2023, 9:15 AM
  • add test
sbc100 added a reviewer: kripken.

lgtm % question

lld/wasm/Driver.cpp
913

I'm not that familiar with the LLVM codebase - is this a common pattern? What does message do?

sbc100 added inline comments.Aug 11 2023, 10:42 AM
lld/wasm/Driver.cpp
913

This is the way we write to stderr for messages to that are designed to end users to see.

In this case we print some extra info about a symbol if the user passes --trace=<symname>

kripken accepted this revision.Aug 11 2023, 10:47 AM
kripken added inline comments.
lld/wasm/Driver.cpp
913

Ah, I see, thanks! Makes sense.

This revision is now accepted and ready to land.Aug 11 2023, 10:47 AM
This revision was landed with ongoing or failed builds.Aug 11 2023, 11:22 AM
This revision was automatically updated to reflect the committed changes.