diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-24 23:02:12 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-24 23:02:12 +0000 |
commit | 2294b4ee27cf6b4aff0cb45ade6f3f7894e87459 (patch) | |
tree | 82133864d87d8bbfabf79978d34da569a32c8c24 /llvm | |
parent | 7c7930f59c9d07e4376d218d49f94101a0c0f989 (diff) | |
download | bcm5719-llvm-2294b4ee27cf6b4aff0cb45ade6f3f7894e87459.tar.gz bcm5719-llvm-2294b4ee27cf6b4aff0cb45ade6f3f7894e87459.zip |
64 bit clean now
llvm-svn: 1789
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 7 | ||||
-rw-r--r-- | llvm/support/lib/Support/CommandLine.cpp | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index d3966279b4f..8633bef9340 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -16,6 +16,7 @@ #include <map> #include <set> #include <iostream> + using namespace cl; using std::map; using std::pair; @@ -354,7 +355,7 @@ bool EnumValueBase::handleOccurance(const char *ArgName, const string &Arg) { unsigned EnumValueBase::getOptionWidth() const { unsigned BaseSize = Option::getOptionWidth(); for (unsigned i = 0; i < ValueMap.size(); ++i) - BaseSize = std::max(BaseSize, std::strlen(ValueMap[i].first)+8); + BaseSize = std::max(BaseSize, (unsigned)std::strlen(ValueMap[i].first)+8); return BaseSize; } @@ -384,7 +385,7 @@ bool EnumFlagsBase::handleOccurance(const char *ArgName, const string &Arg) { unsigned EnumFlagsBase::getOptionWidth() const { unsigned BaseSize = 0; for (unsigned i = 0; i < ValueMap.size(); ++i) - BaseSize = std::max(BaseSize, std::strlen(ValueMap[i].first)+6); + BaseSize = std::max(BaseSize, (unsigned)std::strlen(ValueMap[i].first)+6); return BaseSize; } @@ -417,7 +418,7 @@ bool EnumListBase::handleOccurance(const char *ArgName, const string &Arg) { unsigned EnumListBase::getOptionWidth() const { unsigned BaseSize = 0; for (unsigned i = 0; i < ValueMap.size(); ++i) - BaseSize = std::max(BaseSize, std::strlen(ValueMap[i].first)+6); + BaseSize = std::max(BaseSize, (unsigned)std::strlen(ValueMap[i].first)+6); return BaseSize; } diff --git a/llvm/support/lib/Support/CommandLine.cpp b/llvm/support/lib/Support/CommandLine.cpp index d3966279b4f..8633bef9340 100644 --- a/llvm/support/lib/Support/CommandLine.cpp +++ b/llvm/support/lib/Support/CommandLine.cpp @@ -16,6 +16,7 @@ #include <map> #include <set> #include <iostream> + using namespace cl; using std::map; using std::pair; @@ -354,7 +355,7 @@ bool EnumValueBase::handleOccurance(const char *ArgName, const string &Arg) { unsigned EnumValueBase::getOptionWidth() const { unsigned BaseSize = Option::getOptionWidth(); for (unsigned i = 0; i < ValueMap.size(); ++i) - BaseSize = std::max(BaseSize, std::strlen(ValueMap[i].first)+8); + BaseSize = std::max(BaseSize, (unsigned)std::strlen(ValueMap[i].first)+8); return BaseSize; } @@ -384,7 +385,7 @@ bool EnumFlagsBase::handleOccurance(const char *ArgName, const string &Arg) { unsigned EnumFlagsBase::getOptionWidth() const { unsigned BaseSize = 0; for (unsigned i = 0; i < ValueMap.size(); ++i) - BaseSize = std::max(BaseSize, std::strlen(ValueMap[i].first)+6); + BaseSize = std::max(BaseSize, (unsigned)std::strlen(ValueMap[i].first)+6); return BaseSize; } @@ -417,7 +418,7 @@ bool EnumListBase::handleOccurance(const char *ArgName, const string &Arg) { unsigned EnumListBase::getOptionWidth() const { unsigned BaseSize = 0; for (unsigned i = 0; i < ValueMap.size(); ++i) - BaseSize = std::max(BaseSize, std::strlen(ValueMap[i].first)+6); + BaseSize = std::max(BaseSize, (unsigned)std::strlen(ValueMap[i].first)+6); return BaseSize; } |