llvm.org GIT mirror llvm / f48ec61
revert for now git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28595 91177308-0d34-0410-b5e6-96231b3b80d8 Andrew Lenharth 14 years ago
1 changed file(s) with 13 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5454 return std::string(BufPtr);
5555 }
5656
57 static inline std::string utostr(uint32_t X, bool isNeg = false) {
57 static inline std::string utostr(unsigned long X, bool isNeg = false) {
58 return utostr(static_cast(X), isNeg);
59 }
60
61 static inline std::string utostr(unsigned X, bool isNeg = false) {
5862 char Buffer[20];
5963 char *BufPtr = Buffer+19;
6064
7882 return utostr(static_cast(X));
7983 }
8084
81 static inline std::string itostr(int32_t X) {
85 static inline std::string itostr(long X) {
86 if (X < 0)
87 return utostr(static_cast(-X), true);
88 else
89 return utostr(static_cast(X));
90 }
91
92 static inline std::string itostr(int X) {
8293 if (X < 0)
8394 return utostr(static_cast(-X), true);
8495 else