llvm.org GIT mirror llvm / b5e1dec
Add itostr(long) for our furry 64-bit friends. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15885 91177308-0d34-0410-b5e6-96231b3b80d8 Misha Brukman 15 years ago
2 changed file(s) with 14 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
8383 return std::string(BufPtr);
8484 }
8585
86 static inline std::string itostr(long X) {
87 if (X < 0)
88 return utostr(static_cast(-X), true);
89 else
90 return utostr(static_cast(X));
91 }
92
8693 static inline std::string itostr(int X) {
8794 if (X < 0)
8895 return utostr(static_cast(-X), true);
8383 return std::string(BufPtr);
8484 }
8585
86 static inline std::string itostr(long X) {
87 if (X < 0)
88 return utostr(static_cast(-X), true);
89 else
90 return utostr(static_cast(X));
91 }
92
8693 static inline std::string itostr(int X) {
8794 if (X < 0)
8895 return utostr(static_cast(-X), true);