diff options
author | Chris Lattner <sabre@nondot.org> | 2004-11-15 19:02:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-11-15 19:02:35 +0000 |
commit | c063502e326fe0206942192773b263a3d88d93f5 (patch) | |
tree | b7ed7ed11dc2f82783b082a39bbbc7a0c5863a0c /include/llvm/Module.h | |
parent | 96326f9d312585532c95dcc31626f45f16cd5dd8 (diff) |
Warning fixes for VC++, contributed by Morten Ofstad!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17831 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r-- | include/llvm/Module.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h index b27a7f303a..b645f4e4ea 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -201,7 +201,7 @@ public: 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 @@ public: 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 @@ public: 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); } |