diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/SpecialCaseList.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SpecialCaseList.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/lib/Transforms/Utils/SpecialCaseList.cpp b/llvm/lib/Transforms/Utils/SpecialCaseList.cpp index 5ddaabafc23..5400bcd60bf 100644 --- a/llvm/lib/Transforms/Utils/SpecialCaseList.cpp +++ b/llvm/lib/Transforms/Utils/SpecialCaseList.cpp @@ -51,26 +51,6 @@ struct SpecialCaseList::Entry { SpecialCaseList::SpecialCaseList() : Entries() {} -SpecialCaseList::SpecialCaseList(const StringRef Path) { - // Validate and open blacklist file. - if (Path.empty()) return; - OwningPtr<MemoryBuffer> File; - if (error_code EC = MemoryBuffer::getFile(Path, File)) { - report_fatal_error("Can't open file '" + Path + "': " + - EC.message()); - } - - std::string Error; - if (!parse(File.get(), Error)) - report_fatal_error(Error); -} - -SpecialCaseList::SpecialCaseList(const MemoryBuffer *MB) { - std::string Error; - if (!parse(MB, Error)) - report_fatal_error(Error); -} - SpecialCaseList *SpecialCaseList::create( const StringRef Path, std::string &Error) { if (Path.empty()) |