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 | e4b5fb88515a111ce92270e7530a35739b065c12 (patch) | |
| tree | ca29e1b537cd549cda49390f580c29e843f71911 /llvm/include/llvm/Transforms/Utils/SpecialCaseList.h | |
| parent | 8e20be2aea0c8637335ce0d1e1d19e739c3ebe68 (diff) | |
| download | bcm5719-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.h | 3 |
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(); |

