summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Transforms/Utils/SpecialCaseList.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-08-12 11:46:09 +0000
committerAlexey Samsonov <samsonov@google.com>2013-08-12 11:46:09 +0000
commite4b5fb88515a111ce92270e7530a35739b065c12 (patch)
treeca29e1b537cd549cda49390f580c29e843f71911 /llvm/include/llvm/Transforms/Utils/SpecialCaseList.h
parent8e20be2aea0c8637335ce0d1e1d19e739c3ebe68 (diff)
downloadbcm5719-llvm-e4b5fb88515a111ce92270e7530a35739b065c12.tar.gz
bcm5719-llvm-e4b5fb88515a111ce92270e7530a35739b065c12.zip
Add SpecialCaseList::createOrDie() factory and use it in sanitizer passes
llvm-svn: 188169
Diffstat (limited to 'llvm/include/llvm/Transforms/Utils/SpecialCaseList.h')
-rw-r--r--llvm/include/llvm/Transforms/Utils/SpecialCaseList.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/Transforms/Utils/SpecialCaseList.h b/llvm/include/llvm/Transforms/Utils/SpecialCaseList.h
index 36ee604a1a6..34396fd34b4 100644
--- a/llvm/include/llvm/Transforms/Utils/SpecialCaseList.h
+++ b/llvm/include/llvm/Transforms/Utils/SpecialCaseList.h
@@ -68,6 +68,9 @@ class SpecialCaseList {
/// Parses the special case list from a memory buffer. On failure, returns
/// 0 and writes an error message to string.
static SpecialCaseList *create(const MemoryBuffer *MB, std::string &Error);
+ /// Parses the special case list from a file. On failure, reports a fatal
+ /// error.
+ static SpecialCaseList *createOrDie(const StringRef Path);
~SpecialCaseList();
OpenPOWER on IntegriCloud