diff options
author | Mike Stump <mrs@apple.com> | 2009-10-28 20:44:03 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-10-28 20:44:03 +0000 |
commit | 7d0f5c9ca12d1bae19c3c19500b3b0cf5aedbc29 (patch) | |
tree | a09bf0e2a02dfb1ebb12266dc62b1cc8bbb757b2 | |
parent | 8fa3a1a6732dda5e4bd8815cc64ab516da5c19fc (diff) |
Refactor a bit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85424 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/CGVtable.cpp | 10 |
1 files changed, 1 insertions, 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); |