From 0b15e34bd15e24d6f52bfc259a44e0d149cbf54b Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Wed, 15 Oct 2014 22:17:27 +0000 Subject: Move SanitizerBlacklist object from CodeGenModule to ASTContext. Soon we'll need to have access to blacklist before the CodeGen phase (see http://reviews.llvm.org/D5687), so parse and construct the blacklist earlier. llvm-svn: 219857 --- clang/lib/Basic/SanitizerBlacklist.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/lib/Basic') diff --git a/clang/lib/Basic/SanitizerBlacklist.cpp b/clang/lib/Basic/SanitizerBlacklist.cpp index f96ebc0d9dd..05dec8b5b83 100644 --- a/clang/lib/Basic/SanitizerBlacklist.cpp +++ b/clang/lib/Basic/SanitizerBlacklist.cpp @@ -29,6 +29,9 @@ static StringRef GetGlobalTypeString(const llvm::GlobalValue &G) { return ""; } +SanitizerBlacklist::SanitizerBlacklist(const std::string &BlacklistPath) + : SCL(llvm::SpecialCaseList::createOrDie(BlacklistPath)) {} + bool SanitizerBlacklist::isIn(const llvm::Module &M, StringRef Category) const { return SCL->inSection("src", M.getModuleIdentifier(), Category); -- cgit v1.2.3