Add initial dependency file generation support. Patch by Kovarththanan
Rajaratnam, with some updates and formatting changes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58122 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/clang.h b/Driver/clang.h
index a74a02d..a3b3bcc 100644
--- a/Driver/clang.h
+++ b/Driver/clang.h
@@ -50,6 +50,13 @@
/// CheckDiagnostics - Gather the expected diagnostics and check them.
bool CheckDiagnostics(Preprocessor &PP);
+/// CreateDependencyFileGen - Create dependency file generator.
+/// This is only done if either -MD or -MMD has been specified.
+bool CreateDependencyFileGen(Preprocessor *PP,
+ std::string &OutputFile,
+ const std::string &InputFile,
+ const char *&ErrStr);
+
/// CacheTokens - Cache tokens for use with PCH.
void CacheTokens(Preprocessor& PP, const std::string& OutFile);