mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Remove unused SpecialCaseList constructors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188171 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user