]> granicus.if.org Git - clang/commitdiff
Extend default blacklist logic to MSan and TSan.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 20 May 2013 14:10:58 +0000 (14:10 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Mon, 20 May 2013 14:10:58 +0000 (14:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182269 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/SanitizerArgs.h

index 326d80db72e164a00b3e50d75cc63ff6d133bf7c..1f7ec9913ba4444af1ab55e3cb028440c932ac0e 100644 (file)
@@ -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;
     }