[llvm-commits] CVS: llvm/include/llvm/ADT/StringExtras.h
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Wed May 31 13:18:56 PDT 2006
Changes in directory llvm/include/llvm/ADT:
StringExtras.h updated: 1.30 -> 1.31
---
Log message:
Fix build breakage on alpha, without causing it on x86. as a bonus, all platforms can invent the same number of unique names now
---
Diffs of the changes: (+2 -13)
StringExtras.h | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
Index: llvm/include/llvm/ADT/StringExtras.h
diff -u llvm/include/llvm/ADT/StringExtras.h:1.30 llvm/include/llvm/ADT/StringExtras.h:1.31
--- llvm/include/llvm/ADT/StringExtras.h:1.30 Wed May 31 14:16:26 2006
+++ llvm/include/llvm/ADT/StringExtras.h Wed May 31 15:18:27 2006
@@ -55,11 +55,7 @@
return std::string(BufPtr);
}
-static inline std::string utostr(unsigned long X, bool isNeg = false) {
- return utostr(static_cast<uint64_t>(X), isNeg);
-}
-
-static inline std::string utostr(unsigned X, bool isNeg = false) {
+static inline std::string utostr(uint32_t X, bool isNeg = false) {
char Buffer[20];
char *BufPtr = Buffer+19;
@@ -83,14 +79,7 @@
return utostr(static_cast<uint64_t>(X));
}
-static inline std::string itostr(long X) {
- if (X < 0)
- return utostr(static_cast<uint64_t>(-X), true);
- else
- return utostr(static_cast<uint64_t>(X));
-}
-
-static inline std::string itostr(int X) {
+static inline std::string itostr(int32_t X) {
if (X < 0)
return utostr(static_cast<unsigned>(-X), true);
else
More information about the llvm-commits
mailing list