Add support for utostr(unsigned long)

llvm-svn: 9588
This commit is contained in:
Brian Gaeke 2003-10-29 20:06:19 +00:00
parent cbeda5ad9b
commit 7086bbb33c
1 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,10 @@ static inline std::string itostr(int64_t X) {
}
static inline std::string utostr(unsigned long X, bool isNeg = false) {
return utostr((unsigned long long)X, isNeg);
}
static inline std::string utostr(unsigned X, bool isNeg = false) {
char Buffer[20];
char *BufPtr = Buffer+19;