[llvm-commits] CVS: llvm/include/Support/StringExtras.h
Brian Gaeke
gaeke at cs.uiuc.edu
Wed Oct 29 14:07:06 PST 2003
Changes in directory llvm/include/Support:
StringExtras.h updated: 1.7 -> 1.8
---
Log message:
Add support for utostr(unsigned long)
---
Diffs of the changes: (+4 -0)
Index: llvm/include/Support/StringExtras.h
diff -u llvm/include/Support/StringExtras.h:1.7 llvm/include/Support/StringExtras.h:1.8
--- llvm/include/Support/StringExtras.h:1.7 Mon Oct 20 14:46:57 2003
+++ llvm/include/Support/StringExtras.h Wed Oct 29 14:06:19 2003
@@ -61,6 +61,10 @@
}
+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;
More information about the llvm-commits
mailing list