From 459f733ef00bf0a4b8d7d5b975bcefb8dc2971f3 Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Fri, 21 Jun 2019 18:24:55 +0000 Subject: [clang-scan-deps] print the dependencies to stdout and remove the need to use -MD options in the CDB Differential Revision: https://reviews.llvm.org/D63579 llvm-svn: 364088 --- clang/lib/Frontend/DependencyFile.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/lib') diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp index b52e25bb0eb..375eb91ae36 100644 --- a/clang/lib/Frontend/DependencyFile.cpp +++ b/clang/lib/Frontend/DependencyFile.cpp @@ -322,6 +322,10 @@ void DependencyFileGenerator::outputDependencyFile(DiagnosticsEngine &Diags) { return; } + outputDependencyFile(OS); +} + +void DependencyFileGenerator::outputDependencyFile(llvm::raw_ostream &OS) { // Write out the dependency targets, trying to avoid overly long // lines when possible. We try our best to emit exactly the same // dependency file as GCC (4.2), assuming the included files are the -- cgit v1.2.3