Extend default blacklist logic to MSan and TSan.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182269 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evgeniy Stepanov 2013-05-20 14:10:58 +00:00
Родитель 44b6fa3920
Коммит 26afaf0b12
1 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -203,10 +203,16 @@ class SanitizerArgs {
static bool getDefaultBlacklistForKind(const Driver &D, unsigned Kind, static bool getDefaultBlacklistForKind(const Driver &D, unsigned Kind,
std::string &BLPath) { std::string &BLPath) {
// For now, specify the default blacklist location for ASan only. const char *BlacklistFile = 0;
if (Kind & NeedsAsanRt) { 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); SmallString<64> Path(D.ResourceDir);
llvm::sys::path::append(Path, "asan_blacklist.txt"); llvm::sys::path::append(Path, BlacklistFile);
BLPath = Path.str(); BLPath = Path.str();
return true; return true;
} }