From 655abf57edcc9954428ac405905005f82091add5 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Mon, 12 Aug 2013 11:50:44 +0000 Subject: [PATCH] Remove unused SpecialCaseList constructors git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188171 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../llvm/Transforms/Utils/SpecialCaseList.h | 4 ---- lib/Transforms/Utils/SpecialCaseList.cpp | 20 ------------------- 2 files changed, 24 deletions(-) diff --git a/include/llvm/Transforms/Utils/SpecialCaseList.h b/include/llvm/Transforms/Utils/SpecialCaseList.h index 34396fd34b4..bf95ec02b9c 100644 --- a/include/llvm/Transforms/Utils/SpecialCaseList.h +++ b/include/llvm/Transforms/Utils/SpecialCaseList.h @@ -57,10 +57,6 @@ class StringRef; class SpecialCaseList { public: - // FIXME: Switch all users to factories and remove these constructors. - SpecialCaseList(const StringRef Path); - SpecialCaseList(const MemoryBuffer *MB); - /// Parses the special case list from a file. If Path is empty, returns /// an empty special case list. On failure, returns 0 and writes an error /// message to string. diff --git a/lib/Transforms/Utils/SpecialCaseList.cpp b/lib/Transforms/Utils/SpecialCaseList.cpp index 5ddaabafc23..5400bcd60bf 100644 --- a/lib/Transforms/Utils/SpecialCaseList.cpp +++ b/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 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()) -- 2.34.1