llvm.org GIT mirror llvm / 8831db7
Instead of int64_t, overload itostr with `long long' parameter. This appeases both SparcV9 and 64-bit PowerPC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15910 91177308-0d34-0410-b5e6-96231b3b80d8 Misha Brukman 15 years ago
2 changed file(s) with 14 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
5454 return std::string(BufPtr);
5555 }
5656
57 static inline std::string itostr(int64_t X) {
58 if (X < 0)
59 return utostr(static_cast(-X), true);
60 else
61 return utostr(static_cast(X));
62 }
63
64
6557 static inline std::string utostr(unsigned long X, bool isNeg = false) {
6658 return utostr(static_cast(X), isNeg);
6759 }
8375 return std::string(BufPtr);
8476 }
8577
78 static inline std::string itostr(long long X) {
79 if (X < 0)
80 return utostr(static_cast(-X), true);
81 else
82 return utostr(static_cast(X));
83 }
84
8685 static inline std::string itostr(long X) {
8786 if (X < 0)
8887 return utostr(static_cast(-X), true);
5454 return std::string(BufPtr);
5555 }
5656
57 static inline std::string itostr(int64_t X) {
58 if (X < 0)
59 return utostr(static_cast(-X), true);
60 else
61 return utostr(static_cast(X));
62 }
63
64
6557 static inline std::string utostr(unsigned long X, bool isNeg = false) {
6658 return utostr(static_cast(X), isNeg);
6759 }
8375 return std::string(BufPtr);
8476 }
8577
78 static inline std::string itostr(long long X) {
79 if (X < 0)
80 return utostr(static_cast(-X), true);
81 else
82 return utostr(static_cast(X));
83 }
84
8685 static inline std::string itostr(long X) {
8786 if (X < 0)
8887 return utostr(static_cast(-X), true);