Refactor a bit.

llvm-svn: 85424
This commit is contained in:
Mike Stump 2009-10-28 20:44:03 +00:00
parent faba9fe5e4
commit 476e2dfe19
1 changed files with 1 additions and 9 deletions

View File

@ -509,15 +509,7 @@ public:
if (ForVirtualBase)
extra = offsets.size();
// vtables are composed from the chain of primaries.
if (PrimaryBase) {
if (PrimaryBaseWasVirtual)
IndirectPrimary.insert(PrimaryBase);
Primaries(PrimaryBase, PrimaryBaseWasVirtual|MorallyVirtual, Offset);
}
// And add the virtuals for the class to the primary vtable.
AddMethods(RD, MorallyVirtual, Offset);
Primaries(RD, MorallyVirtual, Offset);
if (Path)
OverrideMethods(Path, MorallyVirtual, Offset);