[llvm-commits] CVS: llvm/include/llvm/ADT/StringExtras.h

Reid Spencer reid at x10sys.com
Wed May 24 12:21:32 PDT 2006



Changes in directory llvm/include/llvm/ADT:

StringExtras.h updated: 1.27 -> 1.28
---
Log message:

For PR786: http://llvm.cs.uiuc.edu/PR786 :
Minor tweaks in public headers and a few .cpp files so that LLVM can build
successfully with -pedantic and projects using LLVM with -pedantic don't 
get warnings from LLVM. There's still more -pedantic warnings to fix.


---
Diffs of the changes:  (+3 -3)

 StringExtras.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/include/llvm/ADT/StringExtras.h
diff -u llvm/include/llvm/ADT/StringExtras.h:1.27 llvm/include/llvm/ADT/StringExtras.h:1.28
--- llvm/include/llvm/ADT/StringExtras.h:1.27	Thu Jan 26 14:36:29 2006
+++ llvm/include/llvm/ADT/StringExtras.h	Wed May 24 14:21:13 2006
@@ -39,7 +39,7 @@
   return std::string(BufPtr);
 }
 
-static inline std::string utostr(unsigned long long X, bool isNeg = false) {
+static inline std::string utostr(uint64_t X, bool isNeg = false) {
   char Buffer[40];
   char *BufPtr = Buffer+39;
 
@@ -56,7 +56,7 @@
 }
 
 static inline std::string utostr(unsigned long X, bool isNeg = false) {
-  return utostr(static_cast<unsigned long long>(X), isNeg);
+  return utostr(static_cast<uint64_t>(X), isNeg);
 }
 
 static inline std::string utostr(unsigned X, bool isNeg = false) {
@@ -76,7 +76,7 @@
   return std::string(BufPtr);
 }
 
-static inline std::string itostr(long long X) {
+static inline std::string itostr(int64_t X) {
   if (X < 0)
     return utostr(static_cast<uint64_t>(-X), true);
   else






More information about the llvm-commits mailing list