aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-08-12 11:50:44 +0000
committerAlexey Samsonov <samsonov@google.com>2013-08-12 11:50:44 +0000
commit655abf57edcc9954428ac405905005f82091add5 (patch)
tree5954ace49906931a351aaa317ee2c1b5acf6a3cb /lib
parente39e1316f034e9932cb8da535541a3e35a0e490a (diff)
downloadexternal_llvm-655abf57edcc9954428ac405905005f82091add5.zip
external_llvm-655abf57edcc9954428ac405905005f82091add5.tar.gz
external_llvm-655abf57edcc9954428ac405905005f82091add5.tar.bz2
Remove unused SpecialCaseList constructors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188171 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Utils/SpecialCaseList.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/Transforms/Utils/SpecialCaseList.cpp b/lib/Transforms/Utils/SpecialCaseList.cpp
index 5ddaaba..5400bcd 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<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())