Index: include/llvm/BasicBlock.h =================================================================== RCS file: /var/cvs/llvm/llvm/include/llvm/BasicBlock.h,v retrieving revision 1.44 diff -u -r1.44 BasicBlock.h --- include/llvm/BasicBlock.h 27 Oct 2004 16:14:47 -0000 1.44 +++ include/llvm/BasicBlock.h 9 Nov 2004 11:01:08 -0000 @@ -121,7 +121,7 @@ inline reverse_iterator rend () { return InstList.rend(); } inline const_reverse_iterator rend () const { return InstList.rend(); } - inline unsigned size() const { return InstList.size(); } + inline size_t size() const { return InstList.size(); } inline bool empty() const { return InstList.empty(); } inline const Instruction &front() const { return InstList.front(); } inline Instruction &front() { return InstList.front(); } Index: include/llvm/DerivedTypes.h =================================================================== RCS file: /var/cvs/llvm/llvm/include/llvm/DerivedTypes.h,v retrieving revision 1.63 diff -u -r1.63 DerivedTypes.h --- include/llvm/DerivedTypes.h 19 Oct 2004 05:49:46 -0000 1.63 +++ include/llvm/DerivedTypes.h 9 Nov 2004 11:12:00 -0000 @@ -140,7 +140,7 @@ /// getNumParams - Return the number of fixed parameters this function type /// requires. This does not consider varargs. /// - unsigned getNumParams() const { return ContainedTys.size()-1; } + unsigned getNumParams() const { return (unsigned)ContainedTys.size()-1; } // Implement the AbstractTypeUser interface. virtual void refineAbstractType(const DerivedType *OldTy, const Type *NewTy); @@ -206,7 +206,7 @@ element_iterator element_end() const { return ContainedTys.end(); } // Random access to the elements - unsigned getNumElements() const { return ContainedTys.size(); } + unsigned getNumElements() const { return (unsigned)ContainedTys.size(); } const Type *getElementType(unsigned N) const { assert(N < ContainedTys.size() && "Element number out of range!"); return ContainedTys[N]; Index: include/llvm/Function.h =================================================================== RCS file: /var/cvs/llvm/llvm/include/llvm/Function.h,v retrieving revision 1.54 diff -u -r1.54 Function.h --- include/llvm/Function.h 19 Oct 2004 05:50:34 -0000 1.54 +++ include/llvm/Function.h 9 Nov 2004 11:11:32 -0000 @@ -168,7 +168,7 @@ reverse_iterator rend () { return BasicBlocks.rend(); } const_reverse_iterator rend () const { return BasicBlocks.rend(); } - unsigned size() const { return BasicBlocks.size(); } + size_t size() const { return BasicBlocks.size(); } bool empty() const { return BasicBlocks.empty(); } const BasicBlock &front() const { return BasicBlocks.front(); } BasicBlock &front() { return BasicBlocks.front(); } @@ -188,7 +188,7 @@ reverse_aiterator arend () { return ArgumentList.rend(); } const_reverse_aiterator arend () const { return ArgumentList.rend(); } - unsigned asize() const { return ArgumentList.size(); } + size_t asize() const { return ArgumentList.size(); } bool aempty() const { return ArgumentList.empty(); } const Argument &afront() const { return ArgumentList.front(); } Argument &afront() { return ArgumentList.front(); } Index: include/llvm/Instructions.h =================================================================== RCS file: /var/cvs/llvm/llvm/include/llvm/Instructions.h,v retrieving revision 1.6 diff -u -r1.6 Instructions.h --- include/llvm/Instructions.h 27 Oct 2004 16:14:47 -0000 1.6 +++ include/llvm/Instructions.h 9 Nov 2004 11:12:45 -0000 @@ -275,7 +275,7 @@ : Instruction((static_cast(&EPI)->getType()), GetElementPtr) { Operands.reserve(EPI.Operands.size()); - for (unsigned i = 0, E = EPI.Operands.size(); i != E; ++i) + for (unsigned i = 0, E = (unsigned)EPI.Operands.size(); i != E; ++i) Operands.push_back(Use(EPI.Operands[i], this)); } void init(Value *Ptr, const std::vector &Idx); @@ -712,7 +712,7 @@ /// getNumIncomingValues - Return the number of incoming edges /// - unsigned getNumIncomingValues() const { return Operands.size()/2; } + unsigned getNumIncomingValues() const { return (unsigned)Operands.size()/2; } /// getIncomingValue - Return incoming value #x /// @@ -994,7 +994,7 @@ /// getNumCases - return the number of 'cases' in this switch instruction. /// Note that case #0 is always the default case. unsigned getNumCases() const { - return Operands.size()/2; + return (unsigned)Operands.size()/2; } /// getCaseValue - Return the specified case value. Note that case #0, the @@ -1055,7 +1055,7 @@ assert(idx < getNumSuccessors() && "Successor # out of range!"); return cast(Operands[idx*2].get()); } - virtual unsigned getNumSuccessors() const { return Operands.size()/2; } + virtual unsigned getNumSuccessors() const { return (unsigned)Operands.size()/2; } // Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const SwitchInst *) { return true; } Index: include/llvm/Module.h =================================================================== RCS file: /var/cvs/llvm/llvm/include/llvm/Module.h,v retrieving revision 1.53 diff -u -r1.53 Module.h --- include/llvm/Module.h 29 Oct 2004 19:20:42 -0000 1.53 +++ include/llvm/Module.h 9 Nov 2004 11:11:32 -0000 @@ -201,7 +201,7 @@ inline reverse_giterator grend () { return GlobalList.rend(); } inline const_reverse_giterator grend () const { return GlobalList.rend(); } - inline unsigned gsize() const { return GlobalList.size(); } + inline size_t gsize() const { return GlobalList.size(); } inline bool gempty() const { return GlobalList.empty(); } inline const GlobalVariable &gfront() const { return GlobalList.front(); } inline GlobalVariable &gfront() { return GlobalList.front(); } @@ -219,7 +219,7 @@ inline reverse_iterator rend () { return FunctionList.rend(); } inline const_reverse_iterator rend () const { return FunctionList.rend(); } - inline unsigned size() const { return FunctionList.size(); } + inline size_t size() const { return FunctionList.size(); } inline bool empty() const { return FunctionList.empty(); } inline const Function &front() const { return FunctionList.front(); } inline Function &front() { return FunctionList.front(); } @@ -236,7 +236,7 @@ inline lib_iterator lib_end() const { return LibraryList.end(); } /// @brief Returns the number of items in the list of libraries. - inline unsigned lib_size() const { return LibraryList.size(); } + inline size_t lib_size() const { return LibraryList.size(); } /// @brief Add a library to the list of dependent libraries inline void addLibrary(const std::string& Lib){ LibraryList.insert(Lib); } Index: include/llvm/SymbolTable.h =================================================================== RCS file: /var/cvs/llvm/llvm/include/llvm/SymbolTable.h,v retrieving revision 1.37 diff -u -r1.37 SymbolTable.h --- include/llvm/SymbolTable.h 17 Jul 2004 23:30:45 -0000 1.37 +++ include/llvm/SymbolTable.h 9 Nov 2004 11:09:48 -0000 @@ -119,7 +119,7 @@ unsigned type_size(const Type *TypeID) const; /// @brief The number of name/type pairs is returned. - inline unsigned num_types() const { return tmap.size(); } + inline unsigned num_types() const { return (unsigned)tmap.size(); } /// Finds the value \p val in the symbol table and returns its /// name. Only the type plane associated with the type of \p val Index: include/llvm/User.h =================================================================== RCS file: /var/cvs/llvm/llvm/include/llvm/User.h,v retrieving revision 1.31 diff -u -r1.31 User.h --- include/llvm/User.h 17 Jul 2004 23:32:11 -0000 1.31 +++ include/llvm/User.h 9 Nov 2004 11:06:26 -0000 @@ -44,7 +44,7 @@ assert(i < Operands.size() && "setOperand() out of range!"); Operands[i] = Val; } - inline unsigned getNumOperands() const { return Operands.size(); } + inline unsigned getNumOperands() const { return (unsigned)Operands.size(); } // --------------------------------------------------------------------------- // Operand Iterator interface...