diff options
author | Anders Carlsson <andersca@mac.com> | 2011-02-05 04:35:53 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-02-05 04:35:53 +0000 |
commit | 1faa89f9c619e4b2411fab4af7e22ee7a2bd9009 (patch) | |
tree | 750a23ef8d0138c080896483095c1030e23d3b97 /lib/Sema/SemaDeclCXX.cpp | |
parent | 09f57b966c2a6c0a1c8d2e0be9862f6b2c89f9f4 (diff) |
Re-land r124768, with a fix for PR9130.
We now emit everything except unused implicit virtual member functions when building the vtable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124935 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclCXX.cpp')
-rw-r--r-- | lib/Sema/SemaDeclCXX.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index 5fbc0f6f26..49be40c5e4 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -7220,13 +7220,6 @@ bool Sema::DefineUsedVTables() { switch (KeyFunction->getTemplateSpecializationKind()) { case TSK_Undeclared: case TSK_ExplicitSpecialization: - // The key function is in another translation unit. Mark all of the - // virtual members of this class as referenced so that we can build a - // vtable anyway (in order to do devirtualization when optimizations - // are turned on for example. - MarkVirtualMembersReferenced(Loc, Class); - continue; - case TSK_ExplicitInstantiationDeclaration: // The key function is in another translation unit. continue; |