[llvm] r188171 - Remove unused SpecialCaseList constructors

Alexey Samsonov samsonov at google.com
Mon Aug 12 04:50:44 PDT 2013


Author: samsonov
Date: Mon Aug 12 06:50:44 2013
New Revision: 188171

URL: http://llvm.org/viewvc/llvm-project?rev=188171&view=rev
Log:
Remove unused SpecialCaseList constructors

Modified:
    llvm/trunk/include/llvm/Transforms/Utils/SpecialCaseList.h
    llvm/trunk/lib/Transforms/Utils/SpecialCaseList.cpp

Modified: llvm/trunk/include/llvm/Transforms/Utils/SpecialCaseList.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Transforms/Utils/SpecialCaseList.h?rev=188171&r1=188170&r2=188171&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Transforms/Utils/SpecialCaseList.h (original)
+++ llvm/trunk/include/llvm/Transforms/Utils/SpecialCaseList.h Mon Aug 12 06:50:44 2013
@@ -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.

Modified: llvm/trunk/lib/Transforms/Utils/SpecialCaseList.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SpecialCaseList.cpp?rev=188171&r1=188170&r2=188171&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SpecialCaseList.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SpecialCaseList.cpp Mon Aug 12 06:50:44 2013
@@ -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())





More information about the llvm-commits mailing list