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 /include/clang/Basic/SanitizerBlacklist.h | |
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 'include/clang/Basic/SanitizerBlacklist.h')
-rw-r--r-- | include/clang/Basic/SanitizerBlacklist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/Basic/SanitizerBlacklist.h b/include/clang/Basic/SanitizerBlacklist.h index 82d88f6bd0..b9a5dcbe60 100644 --- a/include/clang/Basic/SanitizerBlacklist.h +++ b/include/clang/Basic/SanitizerBlacklist.h @@ -18,6 +18,7 @@ #include "llvm/ADT/StringRef.h" #include "llvm/Support/SpecialCaseList.h" #include <memory> +#include <string> namespace llvm { class GlobalVariable; @@ -31,8 +32,7 @@ class SanitizerBlacklist { std::unique_ptr<llvm::SpecialCaseList> SCL; public: - SanitizerBlacklist(std::unique_ptr<llvm::SpecialCaseList> SCL) - : SCL(std::move(SCL)) {} + SanitizerBlacklist(const std::string &BlacklistPath); bool isIn(const llvm::Module &M, StringRef Category = StringRef()) const; bool isIn(const llvm::Function &F) const; |