[NFC] Remove unneeded printString methods
authorJayson Yan <jaysonyan@google.com>
Fri, 10 Dec 2021 18:14:53 +0000 (18:14 +0000)
committerJayson Yan <jaysonyan@google.com>
Fri, 10 Dec 2021 18:57:33 +0000 (18:57 +0000)
Both std::string and char * implicitly convert to StringRef so
the overloaded method using std::string and char* are unneeded.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D114740

llvm/include/llvm/Support/ScopedPrinter.h

index 71d8073..77d19c6 100644 (file)
@@ -327,14 +327,6 @@ public:
     startLine() << Label << ": " << Value << "\n";
   }
 
-  void printString(StringRef Label, const std::string &Value) {
-    printString(Label, StringRef(Value));
-  }
-
-  void printString(StringRef Label, const char *Value) {
-    printString(Label, StringRef(Value));
-  }
-
   template <typename T>
   void printNumber(StringRef Label, StringRef Str, T Value) {
     printNumberImpl(Label, Str, to_string(Value));