From 7d0f5c9ca12d1bae19c3c19500b3b0cf5aedbc29 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Wed, 28 Oct 2009 20:44:03 +0000 Subject: [PATCH] Refactor a bit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85424 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGVtable.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp index 66f48c0e3d..3962ecdc38 100644 --- a/lib/CodeGen/CGVtable.cpp +++ b/lib/CodeGen/CGVtable.cpp @@ -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); -- 2.50.1