This is an archive of the discontinued LLVM Phabricator instance.

[clang][deps] Add module files for input dependencies earlier
ClosedPublic

Authored by benlangmuir on Jan 23 2023, 11:16 AM.

Details

Summary

I originally thought we needed to add module file inputs for modular deps at the same time as outputs because they depend on the lookupModuleOutput callback, but this is not the case: they only depend on the callback results for other modules, which have already been computed by this point. So move them earlier so that they're set in the CompilerInvocation at the same time as other inputs. This makes the code easier to understand.

This change is effectively NFC, though it technically changes the module exact value of the context hash.

Diff Detail

Event Timeline

benlangmuir created this revision.Jan 23 2023, 11:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 23 2023, 11:16 AM
benlangmuir requested review of this revision.Jan 23 2023, 11:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 23 2023, 11:16 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Jan 23 2023, 3:35 PM
This revision was landed with ongoing or failed builds.Jan 24 2023, 8:45 AM
This revision was automatically updated to reflect the committed changes.