aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-12-04 16:24:46 +0000
committerAnders Carlsson <andersca@mac.com>2009-12-04 16:24:46 +0000
commita22fd857d31137f2f0c68c2075002f60164eabaf (patch)
tree35bed4a0829af6a6cb808939aabb40c4e7217aca /lib
parent9d4dd3e3e325e17dec3f449eef9f6cd7159bad82 (diff)
Store the vtable components in a SmallVector.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90571 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/CGVtable.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp
index 9625811a03..6518f52e0c 100644
--- a/lib/CodeGen/CGVtable.cpp
+++ b/lib/CodeGen/CGVtable.cpp
@@ -29,7 +29,8 @@ public:
private:
// Vtable - The components of the vtable being built.
- std::vector<llvm::Constant *> Vtable;
+ typedef llvm::SmallVector<llvm::Constant *, 64> VtableVectorTy;
+ VtableVectorTy Vtable;
llvm::Type *Ptr8Ty;
/// Class - The most derived class that this vtable is being built for.
@@ -185,7 +186,7 @@ public:
}
// getVtable - Returns a reference to the vtable components.
- const std::vector<llvm::Constant *> &getVtable() const {
+ const VtableVectorTy &getVtable() const {
return Vtable;
}