From 7086bbb33cacc921257af707248d1c6f324b15db Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Wed, 29 Oct 2003 20:06:19 +0000 Subject: [PATCH] Add support for utostr(unsigned long) llvm-svn: 9588 --- llvm/include/Support/StringExtras.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/include/Support/StringExtras.h b/llvm/include/Support/StringExtras.h index 0ca6609ff45b..b0f5c51ed0b2 100644 --- a/llvm/include/Support/StringExtras.h +++ b/llvm/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;