зеркало из https://github.com/microsoft/clang-1.git
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:
Родитель
44b6fa3920
Коммит
26afaf0b12
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче