const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
- // else allocate a new slot.
+ // We didn't find an entry in the vtable that we could use, add a new
+ // entry.
+ Methods.AddMethod(GD);
+
Index[GD] = submethods.size();
submethods.push_back(m);
D1(printf(" vfn for %s at %d\n", MD->getNameAsString().c_str(),
methods.push_back(rtti);
Index_t AddressPoint = methods.size();
+ assert(submethods.size() == Methods.size() && "Method size mismatch!");
+
InstallThunks();
D1(printf("============= combining methods\n"));
methods.insert(methods.end(), submethods.begin(), submethods.end());
+
+ Methods.clear();
submethods.clear();
// and then the non-virtual bases.
Adjustment.GD = GD;
}
+ Methods.OverrideMethod(OGD, GD);
+
Index[GD] = i;
submethods[i] = m;
if (isPure)