[llvm-commits] CVS: llvm/include/llvm/Support/CommandLine.h

Jim Laskey jlaskey at apple.com
Fri Aug 26 02:24:59 PDT 2005



Changes in directory llvm/include/llvm/Support:

CommandLine.h updated: 1.47 -> 1.48
---
Log message:

Change unsigned lng to unsigned.


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

 CommandLine.h |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)


Index: llvm/include/llvm/Support/CommandLine.h
diff -u llvm/include/llvm/Support/CommandLine.h:1.47 llvm/include/llvm/Support/CommandLine.h:1.48
--- llvm/include/llvm/Support/CommandLine.h:1.47	Thu Aug 25 18:31:45 2005
+++ llvm/include/llvm/Support/CommandLine.h	Fri Aug 26 04:24:46 2005
@@ -992,12 +992,12 @@
 //
 template<class DataType, class StorageClass>
 class bits_storage {
-  unsigned long *Location;   // Where to store the bits...
+  unsigned *Location;   // Where to store the bits...
   
   template<class T>
   static unsigned Bit(const T &V) {
     unsigned BitPos = (unsigned)V;
-    assert(BitPos < sizeof(unsigned long) * 8 &&
+    assert(BitPos < sizeof(unsigned) * 8 &&
           "enum exceeds width of bit vector!");
     return 1 << BitPos;
   }
@@ -1005,7 +1005,7 @@
 public:
   bits_storage() : Location(0) {}
 
-  bool setLocation(Option &O, unsigned long &L) {
+  bool setLocation(Option &O, unsigned &L) {
     if (Location)
       return O.error(": cl::location(x) specified more than once!");
     Location = &L;
@@ -1019,7 +1019,7 @@
     *Location |= Bit(V);
   }
   
-  unsigned long getBits() { return *Location; }
+  unsigned getBits() { return *Location; }
   
   template<class T>
   bool isSet(const T &V) {
@@ -1033,12 +1033,12 @@
 //
 template<class DataType>
 class bits_storage<DataType, bool> {
-  unsigned long Bits;   // Where to store the bits...
+  unsigned Bits;   // Where to store the bits...
   
   template<class T>
   static unsigned Bit(const T &V) {
     unsigned BitPos = (unsigned)V;
-    assert(BitPos < sizeof(unsigned long) * 8 &&
+    assert(BitPos < sizeof(unsigned) * 8 &&
           "enum exceeds width of bit vector!");
     return 1 << BitPos;
   }
@@ -1049,7 +1049,7 @@
     Bits |=  Bit(V);
   }
   
-  unsigned long getBits() { return Bits; }
+  unsigned getBits() { return Bits; }
   
   template<class T>
   bool isSet(const T &V) {






More information about the llvm-commits mailing list