[llvm] r259331 - Remove utostr_32 as it has no uses anymore.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 31 12:00:26 PST 2016


Author: ctopper
Date: Sun Jan 31 14:00:26 2016
New Revision: 259331

URL: http://llvm.org/viewvc/llvm-project?rev=259331&view=rev
Log:
Remove utostr_32 as it has no uses anymore.

Modified:
    llvm/trunk/include/llvm/ADT/StringExtras.h

Modified: llvm/trunk/include/llvm/ADT/StringExtras.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/StringExtras.h?rev=259331&r1=259330&r2=259331&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/StringExtras.h (original)
+++ llvm/trunk/include/llvm/ADT/StringExtras.h Sun Jan 31 14:00:26 2016
@@ -59,22 +59,6 @@ static inline std::string utohexstr(uint
   return std::string(BufPtr, std::end(Buffer));
 }
 
-static inline std::string utostr_32(uint32_t X, bool isNeg = false) {
-  char Buffer[11];
-  char *BufPtr = std::end(Buffer);
-
-  if (X == 0) *--BufPtr = '0';  // Handle special case...
-
-  while (X) {
-    *--BufPtr = '0' + char(X % 10);
-    X /= 10;
-  }
-
-  if (isNeg) *--BufPtr = '-';   // Add negative sign...
-
-  return std::string(BufPtr, std::end(Buffer));
-}
-
 static inline std::string utostr(uint64_t X, bool isNeg = false) {
   char Buffer[21];
   char *BufPtr = std::end(Buffer);




More information about the llvm-commits mailing list