diff options
| author | Anders Carlsson <andersca@mac.com> | 2010-02-14 00:22:59 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2010-02-14 00:22:59 +0000 |
| commit | 1888b44988e25cfc89ce4bf457d51fe1a86645bb (patch) | |
| tree | 9219eef400dd2fe5e19d4421815dedc7c2acb46a /clang/lib/CodeGen | |
| parent | 258a1e35e8407795ea87751d36d2cbf20c96a653 (diff) | |
| download | bcm5719-llvm-1888b44988e25cfc89ce4bf457d51fe1a86645bb.tar.gz bcm5719-llvm-1888b44988e25cfc89ce4bf457d51fe1a86645bb.zip | |
Don't try to layout construction vtables for now.
llvm-svn: 96138
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGVtable.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp index 3651d1c214d..9c3f1df5a5c 100644 --- a/clang/lib/CodeGen/CGVtable.cpp +++ b/clang/lib/CodeGen/CGVtable.cpp @@ -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()); |

