diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-29 20:06:19 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-29 20:06:19 +0000 |
commit | 78e1dcc32124e123f41ca60c88d796244cf2c174 (patch) | |
tree | 4573ddc1f48741f100e0527ef7d316d09529a155 /include/Support/StringExtras.h | |
parent | b5631bfa0c0bb00081d435629021a5222fa35d4c (diff) | |
download | external_llvm-78e1dcc32124e123f41ca60c88d796244cf2c174.zip external_llvm-78e1dcc32124e123f41ca60c88d796244cf2c174.tar.gz external_llvm-78e1dcc32124e123f41ca60c88d796244cf2c174.tar.bz2 |
Add support for utostr(unsigned long)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9588 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/Support/StringExtras.h')
-rw-r--r-- | include/Support/StringExtras.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/Support/StringExtras.h b/include/Support/StringExtras.h index 0ca6609..b0f5c51 100644 --- a/include/Support/StringExtras.h +++ b/include/Support/StringExtras.h @@ -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; |