aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Type.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-13 16:28:53 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-13 16:28:53 +0000
commit4251ce4b10a35552df67ea624b180ad247960eef (patch)
treef9c8a886fd07d469b637db6492abb9bc51f53543 /include/llvm/Type.h
parent0982d081056f64d7245ba26368d20de33e206ff9 (diff)
Added a size_type typedef to LLVM containers to make Visual Studio shut up
(and possibly to make LLVM more x86 64bit friendly). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r--include/llvm/Type.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index 18b8adb0ce..20a3d6d03e 100644
--- a/include/llvm/Type.h
+++ b/include/llvm/Type.h
@@ -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