diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-08-12 11:46:09 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-08-12 11:46:09 +0000 |
commit | e39e1316f034e9932cb8da535541a3e35a0e490a (patch) | |
tree | bc8dfa9631823bcf2c306b3f9339f0c110854fc9 /include/llvm/Transforms | |
parent | 1f85736c97980507833f1933796bf600f7efde67 (diff) | |
download | external_llvm-e39e1316f034e9932cb8da535541a3e35a0e490a.zip external_llvm-e39e1316f034e9932cb8da535541a3e35a0e490a.tar.gz external_llvm-e39e1316f034e9932cb8da535541a3e35a0e490a.tar.bz2 |
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/SpecialCaseList.h b/include/llvm/Transforms/Utils/SpecialCaseList.h index 36ee604..34396fd 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(); |