diff options
author | Ivan Krasin <krasin@chromium.org> | 2015-08-13 04:04:37 +0000 |
---|---|---|
committer | Ivan Krasin <krasin@chromium.org> | 2015-08-13 04:04:37 +0000 |
commit | 1193f2cbc021f040eef6f97ec72dad5fb1efb7b1 (patch) | |
tree | 921577b0f91fddfff3a6ab823d8ea049d7898919 /clang/lib/Frontend/DependencyFile.cpp | |
parent | 1142f83ce2c28012e611903635a775a8b8944580 (diff) | |
download | llvm-1193f2cbc021f040eef6f97ec72dad5fb1efb7b1.zip llvm-1193f2cbc021f040eef6f97ec72dad5fb1efb7b1.tar.gz llvm-1193f2cbc021f040eef6f97ec72dad5fb1efb7b1.tar.bz2 |
Add sanitizer blacklists to the rules generated with -M/-MM/-MD/-MMD.
Summary:
Clang sanitizers, such as AddressSanitizer, ThreadSanitizer, MemorySanitizer,
Control Flow Integrity and others, use blacklists to specify which types / functions
should not be instrumented to avoid false positives or suppress known failures.
This change adds the blacklist filenames to the list of dependencies of the rules,
generated with -M/-MM/-MD/-MMD. This lets CMake/Ninja recognize that certain
C/C++/ObjC files need to be recompiled (if a blacklist is updated).
Reviewers: pcc
Subscribers: rsmith, honggyu.kim, pcc, cfe-commits
Differential Revision: http://reviews.llvm.org/D11968
llvm-svn: 244867
Diffstat (limited to 'clang/lib/Frontend/DependencyFile.cpp')
-rw-r--r-- | clang/lib/Frontend/DependencyFile.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp index 72de730..67a24c4 100644 --- a/clang/lib/Frontend/DependencyFile.cpp +++ b/clang/lib/Frontend/DependencyFile.cpp @@ -182,7 +182,11 @@ public: AddMissingHeaderDeps(Opts.AddMissingHeaderDeps), SeenMissingHeader(false), IncludeModuleFiles(Opts.IncludeModuleFiles), - OutputFormat(Opts.OutputFormat) {} + OutputFormat(Opts.OutputFormat) { + for (auto ExtraDep : Opts.ExtraDeps) { + AddFilename(ExtraDep); + } + } void FileChanged(SourceLocation Loc, FileChangeReason Reason, SrcMgr::CharacteristicKind FileType, |