diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-10-15 22:17:27 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-10-15 22:17:27 +0000 |
commit | 816e1b9b039891dc01c71d06602ee8b45d333f97 (patch) | |
tree | 2d518dbfca8ae0541cf36b74c4fd6a9e93b67e3a /lib/Basic | |
parent | a60adf011ea50c60471a9fdea4e7d1cfbf4ddea5 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219857 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic')
-rw-r--r-- | lib/Basic/SanitizerBlacklist.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Basic/SanitizerBlacklist.cpp b/lib/Basic/SanitizerBlacklist.cpp index f96ebc0d9d..05dec8b5b8 100644 --- a/lib/Basic/SanitizerBlacklist.cpp +++ b/lib/Basic/SanitizerBlacklist.cpp @@ -29,6 +29,9 @@ static StringRef GetGlobalTypeString(const llvm::GlobalValue &G) { return "<unknown type>"; } +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); |