[cfe-commits] r90571 - /cfe/trunk/lib/CodeGen/CGVtable.cpp
Anders Carlsson
andersca at mac.com
Fri Dec 4 08:24:46 PST 2009
Author: andersca
Date: Fri Dec 4 10:24:46 2009
New Revision: 90571
URL: http://llvm.org/viewvc/llvm-project?rev=90571&view=rev
Log:
Store the vtable components in a SmallVector.
Modified:
cfe/trunk/lib/CodeGen/CGVtable.cpp
Modified: cfe/trunk/lib/CodeGen/CGVtable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVtable.cpp?rev=90571&r1=90570&r2=90571&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Fri Dec 4 10:24:46 2009
@@ -29,7 +29,8 @@
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 @@
}
// getVtable - Returns a reference to the vtable components.
- const std::vector<llvm::Constant *> &getVtable() const {
+ const VtableVectorTy &getVtable() const {
return Vtable;
}
More information about the cfe-commits
mailing list