aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/DependencyFile.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2019-06-21 18:24:55 +0000
committerAlex Lorenz <arphaman@gmail.com>2019-06-21 18:24:55 +0000
commit459f733ef00bf0a4b8d7d5b975bcefb8dc2971f3 (patch)
treef2bb754fea8a93b1adee9361e76837f2554d241c /clang/lib/Frontend/DependencyFile.cpp
parentb250a62a51bbbec0e1f2dd1de8b8c52bead2230e (diff)
downloadllvm-459f733ef00bf0a4b8d7d5b975bcefb8dc2971f3.zip
llvm-459f733ef00bf0a4b8d7d5b975bcefb8dc2971f3.tar.gz
llvm-459f733ef00bf0a4b8d7d5b975bcefb8dc2971f3.tar.bz2
[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
Diffstat (limited to 'clang/lib/Frontend/DependencyFile.cpp')
-rw-r--r--clang/lib/Frontend/DependencyFile.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp
index b52e25b..375eb91 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