[clang][deps] NFC: Preserve the original frontend action
authorJan Svoboda <jan_svoboda@apple.com>
Mon, 14 Jun 2021 08:32:48 +0000 (10:32 +0200)
committerJan Svoboda <jan_svoboda@apple.com>
Mon, 14 Jun 2021 08:49:25 +0000 (10:49 +0200)
commit669771cfe75b48ac4c195ce9e8824319be973f4d
treef2fdfbad4855d517bfe922a43de193c986706f8d
parent1d49e5352f9538bb9c514dd627a93f9c40982d3a
[clang][deps] NFC: Preserve the original frontend action

This patch stops adjusting the frontend action when `clang-scan-deps` is configured to use the full output format.

In a future patch, the dependency scanner needs to check whether the original compiler invocation builds a PCH. That's impossible when `-Eonly` et al. override `-emit-pch`.

The `-Eonly` flag is not needed - the dependency scanner explicitly sets up its own frontend action anyways.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D103461
clang/tools/clang-scan-deps/ClangScanDeps.cpp