From a2860651e8567fe8d8af3968955845b0755f50d0 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Fri, 26 Aug 2005 09:24:46 +0000 Subject: [PATCH] Change unsigned lng to unsigned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23077 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/CommandLine.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h index a44d99b9ded..1b6c444a435 100644 --- a/include/llvm/Support/CommandLine.h +++ b/include/llvm/Support/CommandLine.h @@ -992,12 +992,12 @@ public: // template class bits_storage { - unsigned long *Location; // Where to store the bits... + unsigned *Location; // Where to store the bits... template 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 @@ class bits_storage { 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 @@ public: *Location |= Bit(V); } - unsigned long getBits() { return *Location; } + unsigned getBits() { return *Location; } template bool isSet(const T &V) { @@ -1033,12 +1033,12 @@ public: // template class bits_storage { - unsigned long Bits; // Where to store the bits... + unsigned Bits; // Where to store the bits... template 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 @@ public: Bits |= Bit(V); } - unsigned long getBits() { return Bits; } + unsigned getBits() { return Bits; } template bool isSet(const T &V) {