]> granicus.if.org Git - clang/commitdiff
Don't try to layout construction vtables for now.
authorAnders Carlsson <andersca@mac.com>
Sun, 14 Feb 2010 00:22:59 +0000 (00:22 +0000)
committerAnders Carlsson <andersca@mac.com>
Sun, 14 Feb 2010 00:22:59 +0000 (00:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96138 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGVtable.cpp

index 3651d1c214d0d8d564517ae482ebeba21f3b0f7b..9c3f1df5a5cced2cc11136431f98742824858f8b 100644 (file)
@@ -2416,7 +2416,8 @@ CGVtableInfo::GenerateVtable(llvm::GlobalVariable::LinkageTypes Linkage,
                              const CXXRecordDecl *LayoutClass,
                              const CXXRecordDecl *RD, uint64_t Offset,
                              AddressPointsMapTy& AddressPoints) {
-  if (GenerateDefinition && CGM.getLangOptions().DumpVtableLayouts) {
+  if (GenerateDefinition && CGM.getLangOptions().DumpVtableLayouts && 
+      LayoutClass == RD) {
     VtableBuilder Builder(*this, RD);
     
     Builder.dumpLayout(llvm::errs());