This is an archive of the discontinued LLVM Phabricator instance.

[clang][deps] NFC: Remove redundant CompilerInstance reference
ClosedPublic

Authored by jansvoboda11 on Oct 13 2021, 8:19 AM.

Details

Summary

The ModuleDepCollectorPP class holds a reference to ModuleDepCollector as well as ModuleDepCollector's CompilerInstance. The fact that these refer to the same object is non-obvious.

This patch removes the CompilerInvocation reference from ModuleDepCollectorPP and accesses it through ModuleDepCollector instead.

Diff Detail

Event Timeline

jansvoboda11 requested review of this revision.Oct 13 2021, 8:19 AM
jansvoboda11 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2021, 8:19 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Oct 13 2021, 6:52 PM