[llvm-commits] CVS: llvm/include/Support/StringExtras.h
Misha Brukman
brukman at cs.uiuc.edu
Wed Aug 18 15:56:22 PDT 2004
Changes in directory llvm/include/Support:
StringExtras.h updated: 1.21 -> 1.22
---
Log message:
Instead of int64_t, overload itostr with `long long' parameter.
This appeases both SparcV9 and 64-bit PowerPC.
---
Diffs of the changes: (+7 -8)
Index: llvm/include/Support/StringExtras.h
diff -u llvm/include/Support/StringExtras.h:1.21 llvm/include/Support/StringExtras.h:1.22
--- llvm/include/Support/StringExtras.h:1.21 Tue Aug 17 13:08:52 2004
+++ llvm/include/Support/StringExtras.h Wed Aug 18 17:56:12 2004
@@ -55,14 +55,6 @@
return std::string(BufPtr);
}
-static inline std::string itostr(int64_t X) {
- if (X < 0)
- return utostr(static_cast<uint64_t>(-X), true);
- else
- return utostr(static_cast<uint64_t>(X));
-}
-
-
static inline std::string utostr(unsigned long X, bool isNeg = false) {
return utostr(static_cast<unsigned long long>(X), isNeg);
}
@@ -84,6 +76,13 @@
return std::string(BufPtr);
}
+static inline std::string itostr(long 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(long X) {
if (X < 0)
return utostr(static_cast<uint64_t>(-X), true);
More information about the llvm-commits
mailing list