]> granicus.if.org Git - clang/commitdiff
Store the vtable components in a SmallVector.
authorAnders Carlsson <andersca@mac.com>
Fri, 4 Dec 2009 16:24:46 +0000 (16:24 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 4 Dec 2009 16:24:46 +0000 (16:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90571 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGVtable.cpp

index 9625811a036576ad8bbf091678250082f6e78eb4..6518f52e0c474c590de818b19a5492f395c3eff4 100644 (file)
@@ -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;
   }