summaryrefslogtreecommitdiff
path: root/include/llvm/Transforms
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
commite39e1316f034e9932cb8da535541a3e35a0e490a (patch)
treebc8dfa9631823bcf2c306b3f9339f0c110854fc9 /include/llvm/Transforms
parent1f85736c97980507833f1933796bf600f7efde67 (diff)
downloadllvm-e39e1316f034e9932cb8da535541a3e35a0e490a.tar.gz
llvm-e39e1316f034e9932cb8da535541a3e35a0e490a.tar.bz2
llvm-e39e1316f034e9932cb8da535541a3e35a0e490a.tar.xz
Add SpecialCaseList::createOrDie() factory and use it in sanitizer passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/Utils/SpecialCaseList.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/SpecialCaseList.h b/include/llvm/Transforms/Utils/SpecialCaseList.h
index 36ee604a1a..34396fd34b 100644
--- a/include/llvm/Transforms/Utils/SpecialCaseList.h
+++ b/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();