summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Support/CommandLine.h
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2005-08-26 09:24:46 +0000
committerJim Laskey <jlaskey@mac.com>2005-08-26 09:24:46 +0000
commit6e07862be659006fe1800059547439ecbec2097e (patch)
tree1029db07258e7d5fe1c57e03b1f39516dca4eefc /llvm/include/llvm/Support/CommandLine.h
parent7b809f593b1f28fa92408611fb4d834427184375 (diff)
downloadbcm5719-llvm-6e07862be659006fe1800059547439ecbec2097e.tar.gz
bcm5719-llvm-6e07862be659006fe1800059547439ecbec2097e.zip
Change unsigned lng to unsigned.
llvm-svn: 23077
Diffstat (limited to 'llvm/include/llvm/Support/CommandLine.h')
-rw-r--r--llvm/include/llvm/Support/CommandLine.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h
index a44d99b9ded..1b6c444a435 100644
--- a/llvm/include/llvm/Support/CommandLine.h
+++ b/llvm/include/llvm/Support/CommandLine.h
@@ -992,12 +992,12 @@ public:
//
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 @@ 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<class T>
bool isSet(const T &V) {
@@ -1033,12 +1033,12 @@ public:
//
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 @@ public:
Bits |= Bit(V);
}
- unsigned long getBits() { return Bits; }
+ unsigned getBits() { return Bits; }
template<class T>
bool isSet(const T &V) {
OpenPOWER on IntegriCloud