From: Anders Carlsson Date: Fri, 4 Dec 2009 16:24:46 +0000 (+0000) Subject: Store the vtable components in a SmallVector. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a22fd857d31137f2f0c68c2075002f60164eabaf;p=clang Store the vtable components in a SmallVector. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90571 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 Vtable; + typedef llvm::SmallVector 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 &getVtable() const { + const VtableVectorTy &getVtable() const { return Vtable; }