summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/DependencyFile.cpp
diff options
context:
space:
mode:
authorJan Korous <jkorous@apple.com>2019-09-07 00:59:13 +0000
committerJan Korous <jkorous@apple.com>2019-09-07 00:59:13 +0000
commit0aee3873214682b0db7e9a876a8baedbb22a1039 (patch)
tree7740d395d1a0588f7a145b05932a46db4021c6ce /clang/lib/Frontend/DependencyFile.cpp
parenta8d3771a318fa9ac2519c6b3f2979ba735b65941 (diff)
downloadbcm5719-llvm-0aee3873214682b0db7e9a876a8baedbb22a1039.tar.gz
bcm5719-llvm-0aee3873214682b0db7e9a876a8baedbb22a1039.zip
[clang][DependencyFileGenerator] Fix missing -MT option handling
Targets in DependencyFileGenerator don't necessarily come from -MT option. Differential Revision: https://reviews.llvm.org/D67308 llvm-svn: 371279
Diffstat (limited to 'clang/lib/Frontend/DependencyFile.cpp')
-rw-r--r--clang/lib/Frontend/DependencyFile.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp
index b9c753d909a..4bb0167bd59 100644
--- a/clang/lib/Frontend/DependencyFile.cpp
+++ b/clang/lib/Frontend/DependencyFile.cpp
@@ -192,11 +192,6 @@ DependencyFileGenerator::DependencyFileGenerator(
}
void DependencyFileGenerator::attachToPreprocessor(Preprocessor &PP) {
- if (Targets.empty()) {
- PP.getDiagnostics().Report(diag::err_fe_dependency_file_requires_MT);
- return;
- }
-
// Disable the "file not found" diagnostic if the -MG option was given.
if (AddMissingHeaderDeps)
PP.SetSuppressIncludeNotFoundError(true);
OpenPOWER on IntegriCloud