diff --git a/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h b/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h index 4eac56ec81b463..961e383b109634 100644 --- a/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h +++ b/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h @@ -106,8 +106,7 @@ class DependencyScanningTool { llvm::Expected getP1689ModuleDependencyFile( const clang::tooling::CompileCommand &Command, StringRef CWD, - std::string &MakeformatOutput, std::string &MakeformatOutputPath, - std::optional ModuleName = std::nullopt); + std::string &MakeformatOutput, std::string &MakeformatOutputPath); /// Given a Clang driver command-line for a translation unit, gather the /// modular dependencies and return the information needed for explicit build. diff --git a/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp b/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp index b336e2f28e018d..b5e336bc704cb2 100644 --- a/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp +++ b/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp @@ -92,8 +92,7 @@ llvm::Expected DependencyScanningTool::getDependencyFile( llvm::Expected DependencyScanningTool::getP1689ModuleDependencyFile( const CompileCommand &Command, StringRef CWD, - std::string &MakeformatOutput, std::string &MakeformatOutputPath, - std::optional ModuleName) { + std::string &MakeformatOutput, std::string &MakeformatOutputPath) { class P1689ModuleDependencyPrinterConsumer : public MakeDependencyPrinterConsumer { public: diff --git a/clang/tools/clang-scan-deps/ClangScanDeps.cpp b/clang/tools/clang-scan-deps/ClangScanDeps.cpp index fc2ade955a5761..4cfb857c5b3b71 100644 --- a/clang/tools/clang-scan-deps/ClangScanDeps.cpp +++ b/clang/tools/clang-scan-deps/ClangScanDeps.cpp @@ -833,8 +833,7 @@ int main(int argc, const char **argv) { std::string MakeformatOutput; auto MaybeRule = WorkerTools[I]->getP1689ModuleDependencyFile( - *Input, CWD, MakeformatOutput, MakeformatOutputPath, - MaybeModuleName); + *Input, CWD, MakeformatOutput, MakeformatOutputPath); HadErrors = handleP1689DependencyToolResult(Filename, MaybeRule, PD, Errs);