From a22fd857d31137f2f0c68c2075002f60164eabaf Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Fri, 4 Dec 2009 16:24:46 +0000 Subject: Store the vtable components in a SmallVector. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90571 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGVtable.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CGVtable.cpp') 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; } -- cgit v1.2.3-18-g5258