[llvm-commits] CVS: llvm/include/llvm/Type.h Value.h
Reid Spencer
reid at x10sys.com
Mon Dec 13 08:29:04 PST 2004
Changes in directory llvm/include/llvm:
Type.h updated: 1.67 -> 1.68
Value.h updated: 1.66 -> 1.67
---
Log message:
Added a size_type typedef to LLVM containers to make Visual Studio shut up
(and possibly to make LLVM more x86 64bit friendly).
---
Diffs of the changes: (+4 -2)
Index: llvm/include/llvm/Type.h
diff -u llvm/include/llvm/Type.h:1.67 llvm/include/llvm/Type.h:1.68
--- llvm/include/llvm/Type.h:1.67 Fri Nov 19 10:39:04 2004
+++ llvm/include/llvm/Type.h Mon Dec 13 10:28:53 2004
@@ -246,7 +246,8 @@
/// 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
Index: llvm/include/llvm/Value.h
diff -u llvm/include/llvm/Value.h:1.66 llvm/include/llvm/Value.h:1.67
--- llvm/include/llvm/Value.h:1.66 Wed Oct 27 11:14:47 2004
+++ llvm/include/llvm/Value.h Mon Dec 13 10:28:53 2004
@@ -89,8 +89,9 @@
//
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(); }
More information about the llvm-commits
mailing list