summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-02-14 00:22:59 +0000
committerAnders Carlsson <andersca@mac.com>2010-02-14 00:22:59 +0000
commit1888b44988e25cfc89ce4bf457d51fe1a86645bb (patch)
tree9219eef400dd2fe5e19d4421815dedc7c2acb46a /clang/lib/CodeGen
parent258a1e35e8407795ea87751d36d2cbf20c96a653 (diff)
downloadbcm5719-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.cpp3
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());
OpenPOWER on IntegriCloud