diff options
author | Ivan Krasin <krasin@chromium.org> | 2015-09-02 20:02:38 +0000 |
---|---|---|
committer | Ivan Krasin <krasin@chromium.org> | 2015-09-02 20:02:38 +0000 |
commit | 4c3f237edb3ed7f0fe1b21708ad02f0ce0b6dac2 (patch) | |
tree | ac86b6c98886f2705d0713e7fd8b27bdda4d2839 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | a24296b459660924f4c9f50321c0c0bf6ca1ee89 (diff) | |
download | bcm5719-llvm-4c3f237edb3ed7f0fe1b21708ad02f0ce0b6dac2.tar.gz bcm5719-llvm-4c3f237edb3ed7f0fe1b21708ad02f0ce0b6dac2.zip |
Do not include default sanitizer blacklists into -M/-MM/-MD/-MMD output.
Summary:
Do not include default sanitizer blacklists into -M/-MM/-MD/-MMD output.
Introduce a frontend option -fdepfile-entry, and only insert them
for the user-defined sanitizer blacklists. In frontend, grab ExtraDeps
from -fdepfile-entry, instead of -fsanitize-blacklist.
Reviewers: rsmith, pcc
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D12544
llvm-svn: 246700
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 414e5893992..435811c105f 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -709,7 +709,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. - Opts.ExtraDeps = Args.getAllArgValues(OPT_fsanitize_blacklist); + Opts.ExtraDeps = Args.getAllArgValues(OPT_fdepfile_entry); auto ModuleFiles = Args.getAllArgValues(OPT_fmodule_file); Opts.ExtraDeps.insert(Opts.ExtraDeps.end(), ModuleFiles.begin(), ModuleFiles.end()); |