diff options
author | Abel Kocsis <abelkocsis@cc.inf.elte.hu> | 2019-11-08 14:08:15 +0100 |
---|---|---|
committer | Abel Kocsis <abelkocsis@cc.inf.elte.hu> | 2019-11-08 14:08:15 +0100 |
commit | 9b8413ac6e56e7a6e0ba884773d13bcf9414bd43 (patch) | |
tree | 4ee62da51f7f810c6960edc16da4f6756b3a6478 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 3182027282c59c51d5080d83365917fccd695854 (diff) | |
download | bcm5719-llvm-9b8413ac6e56e7a6e0ba884773d13bcf9414bd43.tar.gz bcm5719-llvm-9b8413ac6e56e7a6e0ba884773d13bcf9414bd43.zip |
Revert "Revert "Revert "[clang] Report sanitizer blacklist as a dependency in cc1"""
This reverts commit 3182027282c59c51d5080d83365917fccd695854.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 17fd4ce7752..195a29d7118 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1447,26 +1447,7 @@ static void ParseDependencyOutputArgs(DependencyOutputOptions &Opts, // Add sanitizer blacklists as extra dependencies. // They won't be discovered by the regular preprocessor, so // we let make / ninja to know about this implicit dependency. - if (!Args.hasArg(OPT_fno_sanitize_blacklist)) { - for (const auto *A : Args.filtered(OPT_fsanitize_blacklist)) { - StringRef Val = A->getValue(); - if (Val.find('=') == StringRef::npos) - Opts.ExtraDeps.push_back(Val); - } - if (Opts.IncludeSystemHeaders) { - for (const auto *A : Args.filtered(OPT_fsanitize_system_blacklist)) { - StringRef Val = A->getValue(); - if (Val.find('=') == StringRef::npos) - Opts.ExtraDeps.push_back(Val); - } - } - } - - // Propagate the extra dependencies. - for (const auto *A : Args.filtered(OPT_fdepfile_entry)) { - Opts.ExtraDeps.push_back(A->getValue()); - } - + Opts.ExtraDeps = Args.getAllArgValues(OPT_fdepfile_entry); // Only the -fmodule-file=<file> form. for (const auto *A : Args.filtered(OPT_fmodule_file)) { StringRef Val = A->getValue(); |