Fix some cases where StringRef was being passed by const reference. Remove const...
[oota-llvm.git] / include / llvm / Support / SpecialCaseList.h
index 098b9c7a17b7efa01b0dd7b8ba55db9aead599ad..5fc52e64fdbef1a4108439167f488775147fba9a 100644 (file)
@@ -60,13 +60,13 @@ class SpecialCaseList {
   /// 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.
-  static SpecialCaseList *create(const StringRef Path, std::string &Error);
+  static SpecialCaseList *create(StringRef Path, std::string &Error);
   /// Parses the special case list from a memory buffer. On failure, returns
   /// 0 and writes an error message to string.
   static SpecialCaseList *create(const MemoryBuffer *MB, std::string &Error);
   /// Parses the special case list from a file. On failure, reports a fatal
   /// error.
-  static SpecialCaseList *createOrDie(const StringRef Path);
+  static SpecialCaseList *createOrDie(StringRef Path);
 
   ~SpecialCaseList();
 
@@ -75,8 +75,8 @@ class SpecialCaseList {
   ///   @Section:<E>=@Category
   /// \endcode
   /// and @Query satisfies a wildcard expression <E>.
-  bool inSection(const StringRef Section, const StringRef Query,
-                 const StringRef Category = StringRef()) const;
+  bool inSection(StringRef Section, StringRef Query,
+                 StringRef Category = StringRef()) const;
 
  private:
   SpecialCaseList(SpecialCaseList const &) LLVM_DELETED_FUNCTION;