[cfe-commits] r90562 - /cfe/trunk/lib/CodeGen/CGVtable.cpp
Eli Friedman
eli.friedman at gmail.com
Fri Dec 4 00:36:58 PST 2009
Author: efriedma
Date: Fri Dec 4 02:36:58 2009
New Revision: 90562
URL: http://llvm.org/viewvc/llvm-project?rev=90562&view=rev
Log:
Eliminate submethods vector.
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=90562&r1=90561&r2=90562&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Fri Dec 4 02:36:58 2009
@@ -28,7 +28,6 @@
typedef uint64_t Index_t;
private:
std::vector<llvm::Constant *> &methods;
- std::vector<llvm::Constant *> submethods;
llvm::Type *Ptr8Ty;
/// Class - The most derived class that this vtable is being built for.
const CXXRecordDecl *Class;
@@ -343,7 +342,6 @@
// entry.
Methods.AddMethod(GD);
- submethods.push_back(m);
D1(printf(" vfn for %s at %d\n", MD->getNameAsString().c_str(),
(int)Index[GD]));
if (MorallyVirtual) {
@@ -473,8 +471,6 @@
methods.push_back(rtti);
Index_t AddressPoint = methods.size();
- assert(submethods.size() == Methods.size() && "Method size mismatch!");
-
AppendMethodsToVtable();
// and then the non-virtual bases.
@@ -780,7 +776,6 @@
Methods.OverrideMethod(OGD, GD);
- submethods[Index] = m;
ThisAdjustments.erase(Index);
if (MorallyVirtual || VCall.count(OGD)) {
Index_t &idx = VCall[OGD];
@@ -886,7 +881,6 @@
BaseReturnTypes.clear();
Methods.clear();
- submethods.clear();
}
void CGVtableInfo::ComputeMethodVtableIndices(const CXXRecordDecl *RD) {
More information about the cfe-commits
mailing list