diff --git a/include/Support/StringExtras.h b/include/Support/StringExtras.h index 628528d322d..fcfa65f232f 100644 --- a/include/Support/StringExtras.h +++ b/include/Support/StringExtras.h @@ -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(-X), true); - else - return utostr(static_cast(X)); -} - - static inline std::string utostr(unsigned long X, bool isNeg = false) { return utostr(static_cast(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(-X), true); + else + return utostr(static_cast(X)); +} + static inline std::string itostr(long X) { if (X < 0) return utostr(static_cast(-X), true); diff --git a/include/llvm/ADT/StringExtras.h b/include/llvm/ADT/StringExtras.h index 628528d322d..fcfa65f232f 100644 --- a/include/llvm/ADT/StringExtras.h +++ b/include/llvm/ADT/StringExtras.h @@ -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(-X), true); - else - return utostr(static_cast(X)); -} - - static inline std::string utostr(unsigned long X, bool isNeg = false) { return utostr(static_cast(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(-X), true); + else + return utostr(static_cast(X)); +} + static inline std::string itostr(long X) { if (X < 0) return utostr(static_cast(-X), true);