r182269 - Extend default blacklist logic to MSan and TSan.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Mon May 20 07:10:58 PDT 2013
Author: eugenis
Date: Mon May 20 09:10:58 2013
New Revision: 182269
URL: http://llvm.org/viewvc/llvm-project?rev=182269&view=rev
Log:
Extend default blacklist logic to MSan and TSan.
Modified:
cfe/trunk/lib/Driver/SanitizerArgs.h
Modified: cfe/trunk/lib/Driver/SanitizerArgs.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/SanitizerArgs.h?rev=182269&r1=182268&r2=182269&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/SanitizerArgs.h (original)
+++ cfe/trunk/lib/Driver/SanitizerArgs.h Mon May 20 09:10:58 2013
@@ -203,10 +203,16 @@ class SanitizerArgs {
static bool getDefaultBlacklistForKind(const Driver &D, unsigned Kind,
std::string &BLPath) {
- // For now, specify the default blacklist location for ASan only.
- if (Kind & NeedsAsanRt) {
+ const char *BlacklistFile = 0;
+ if (Kind & NeedsAsanRt)
+ BlacklistFile = "asan_blacklist.txt";
+ else if (Kind & NeedsMsanRt)
+ BlacklistFile = "msan_blacklist.txt";
+ else if (Kind & NeedsTsanRt)
+ BlacklistFile = "tsan_blacklist.txt";
+ if (BlacklistFile) {
SmallString<64> Path(D.ResourceDir);
- llvm::sys::path::append(Path, "asan_blacklist.txt");
+ llvm::sys::path::append(Path, BlacklistFile);
BLPath = Path.str();
return true;
}
More information about the cfe-commits
mailing list