forked from OSchip/llvm-project
Added a size_type typedef to LLVM containers to make Visual Studio shut up
(and possibly to make LLVM more x86 64bit friendly). llvm-svn: 18891
This commit is contained in:
parent
eb21d18b36
commit
0b4a4bf96a
llvm/include/llvm
|
@ -435,7 +435,7 @@ public:
|
|||
typedef DataType parser_data_type;
|
||||
|
||||
// Implement virtual functions needed by generic_parser_base
|
||||
unsigned getNumOptions() const { return Values.size(); }
|
||||
unsigned getNumOptions() const { return (unsigned)Values.size(); }
|
||||
const char *getOption(unsigned N) const { return Values[N].first; }
|
||||
const char *getDescription(unsigned N) const {
|
||||
return Values[N].second.second;
|
||||
|
|
|
@ -246,7 +246,8 @@ public:
|
|||
|
||||
/// getNumContainedTypes - Return the number of types in the derived type.
|
||||
///
|
||||
unsigned getNumContainedTypes() const { return ContainedTys.size(); }
|
||||
typedef std::vector<PATypeHandle>::size_type size_type;
|
||||
size_type getNumContainedTypes() const { return ContainedTys.size(); }
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
// Static members exported by the Type class itself. Useful for getting
|
||||
|
|
|
@ -89,8 +89,9 @@ public:
|
|||
//
|
||||
typedef UseListIteratorWrapper use_iterator;
|
||||
typedef UseListConstIteratorWrapper use_const_iterator;
|
||||
typedef iplist<Use>::size_type size_type;
|
||||
|
||||
unsigned use_size() const { return Uses.size(); }
|
||||
size_type use_size() const { return Uses.size(); }
|
||||
bool use_empty() const { return Uses.empty(); }
|
||||
use_iterator use_begin() { return Uses.begin(); }
|
||||
use_const_iterator use_begin() const { return Uses.begin(); }
|
||||
|
|
Loading…
Reference in New Issue