summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-10-29 20:06:19 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-10-29 20:06:19 +0000
commit7086bbb33cacc921257af707248d1c6f324b15db (patch)
tree9f2f9476ab370adced6800246edcfe09d6cace6e
parentcbeda5ad9bd4d720febc367c686f6f96a83a6c8e (diff)
downloadbcm5719-llvm-7086bbb33cacc921257af707248d1c6f324b15db.tar.gz
bcm5719-llvm-7086bbb33cacc921257af707248d1c6f324b15db.zip
Add support for utostr(unsigned long)
llvm-svn: 9588
-rw-r--r--llvm/include/Support/StringExtras.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/Support/StringExtras.h b/llvm/include/Support/StringExtras.h
index 0ca6609ff45..b0f5c51ed0b 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;
OpenPOWER on IntegriCloud