Be a bit more efficient when processing the active and inactive
[oota-llvm.git] / include / Support / StringExtras.h
index 628528d322dbaf9d71615f1d07e9ddb4d4f12249..fcfa65f232f48dfaa9d5775212b3e1981ae35d42 100644 (file)
@@ -55,14 +55,6 @@ static inline std::string utostr(unsigned long long X, bool isNeg = false) {
   return std::string(BufPtr);
 }
 
-static inline std::string itostr(int64_t X) {
-  if (X < 0) 
-    return utostr(static_cast<uint64_t>(-X), true);
-  else
-    return utostr(static_cast<uint64_t>(X));
-}
-
-
 static inline std::string utostr(unsigned long X, bool isNeg = false) {
   return utostr(static_cast<unsigned long long>(X), isNeg);
 }
@@ -84,6 +76,13 @@ static inline std::string utostr(unsigned X, bool isNeg = false) {
   return std::string(BufPtr);
 }
 
+static inline std::string itostr(long long X) {
+  if (X < 0) 
+    return utostr(static_cast<uint64_t>(-X), true);
+  else
+    return utostr(static_cast<uint64_t>(X));
+}
+  
 static inline std::string itostr(long X) {
   if (X < 0) 
     return utostr(static_cast<uint64_t>(-X), true);