Fix build breakage on alpha, without causing it on x86. as a bonus, all platforms...
authorAndrew Lenharth <andrewl@lenharth.org>
Wed, 31 May 2006 20:18:28 +0000 (20:18 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Wed, 31 May 2006 20:18:28 +0000 (20:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28596 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/StringExtras.h
include/llvm/SymbolTable.h
include/llvm/TypeSymbolTable.h
include/llvm/ValueSymbolTable.h

index 375b655b4d6e8ed317ba197c693e0a1143ea13c1..e66fc693453658e3633f06c1fcb2c8aca6489f38 100644 (file)
@@ -55,11 +55,7 @@ static inline std::string utostr(uint64_t X, bool isNeg = false) {
   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 @@ static inline std::string itostr(int64_t X) {
     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
index 04f009681c1c837d162792e59b68cbb9d9537bcb..5083243c3622ad106c7b0995068a3cf9a2366674 100644 (file)
@@ -292,7 +292,7 @@ private:
 
   /// This value is used to retain the last unique value used
   /// by getUniqueName to generate unique names.
-  mutable unsigned long LastUnique;
+  mutable uint64_t LastUnique;
 
 /// @}
 
index a31525bdc7cd92135e641096ac5db6143d9d90fb..8a494562d372d6830fff58272d8d8c1805a1d2f1 100644 (file)
@@ -138,7 +138,7 @@ private:
 /// @{
 private:
   TypeMap tmap; ///< This is the mapping of names to types.
-  mutable unsigned long LastUnique; ///< Counter for tracking unique names
+  mutable uint64_t LastUnique; ///< Counter for tracking unique names
 
 /// @}
 
index df3fe181971bcab03c5ff3484c5cb43773d9802a..34fa28bd5a7b7ae713dfb4222353161aca501e0a 100644 (file)
@@ -127,7 +127,7 @@ public:
 /// @{
 private:
   ValueMap vmap;                    ///< The map that holds the symbol table.
-  mutable unsigned long LastUnique; ///< Counter for tracking unique names
+  mutable uint64_t LastUnique; ///< Counter for tracking unique names
 
 /// @}