Remove unused function.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 15 Jul 2009 20:59:20 +0000 (20:59 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 15 Jul 2009 20:59:20 +0000 (20:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75829 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/XCore/XCoreAsmPrinter.cpp

index d829d9fafb7f6a9635e6f67515108d5161e146b5..213039f58b64cc85f1f4a2638723fed6beb3168e 100644 (file)
@@ -103,22 +103,6 @@ FunctionPass *llvm::createXCoreCodePrinterPass(formatted_raw_ostream &o,
   return new XCoreAsmPrinter(o, tm, tm.getTargetAsmInfo(), verbose);
 }
 
-// PrintEscapedString - Print each character of the specified string, escaping
-// it if it is not printable or if it is an escape char.
-static void PrintEscapedString(const std::string &Str,
-                               formatted_raw_ostream &Out) {
-  for (unsigned i = 0, e = Str.size(); i != e; ++i) {
-    unsigned char C = Str[i];
-    if (isprint(C) && C != '"' && C != '\\') {
-      Out << C;
-    } else {
-      Out << '\\'
-          << (char) ((C/16  < 10) ? ( C/16 +'0') : ( C/16 -10+'A'))
-          << (char)(((C&15) < 10) ? ((C&15)+'0') : ((C&15)-10+'A'));
-    }
-  }
-}
-
 void XCoreAsmPrinter::
 emitGlobalDirective(const std::string &name)
 {