aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/Utils/SpecialCaseList.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Transforms/Utils/SpecialCaseList.h')
-rw-r--r--include/llvm/Transforms/Utils/SpecialCaseList.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/SpecialCaseList.h b/include/llvm/Transforms/Utils/SpecialCaseList.h
index 42d9735..30e3e46 100644
--- a/include/llvm/Transforms/Utils/SpecialCaseList.h
+++ b/include/llvm/Transforms/Utils/SpecialCaseList.h
@@ -35,6 +35,7 @@
namespace llvm {
class Function;
class GlobalVariable;
+class MemoryBuffer;
class Module;
class Regex;
class StringRef;
@@ -42,6 +43,8 @@ class StringRef;
class SpecialCaseList {
public:
SpecialCaseList(const StringRef Path);
+ SpecialCaseList(const MemoryBuffer *MB);
+
// Returns whether either this function or it's source file are blacklisted.
bool isIn(const Function &F) const;
// Returns whether either this global or it's source file are blacklisted.
@@ -53,6 +56,7 @@ class SpecialCaseList {
private:
StringMap<Regex*> Entries;
+ void init(const MemoryBuffer *MB);
bool inSection(const StringRef Section, const StringRef Query) const;
};