HomePhabricator

[clang][deps] NFC: Handle `DependencyOutputOptions` only once

Authored by jansvoboda11 on Jun 14 2021, 6:06 AM.

Description

[clang][deps] NFC: Handle DependencyOutputOptions only once

There's no need to pass DependencyOutputOptions to each call of handleFileDependency, since the options don't ever change.

This patch adds new handleDependencyOutputOpts method to the DependencyConsumer interface and the dependency scanner uses it to report the options only once.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D104104

Details

Committed
jansvoboda11Jun 14 2021, 6:16 AM
Reviewer
dexonsmith
Differential Revision
D104104: [clang][deps] NFC: Handle `DependencyOutputOptions` only once
Parents
rGbb8ce25e8821: Intrinsic::getName: require a Module argument
Branches
Unknown
Tags
Unknown