[cfe-commits] r96138 - /cfe/trunk/lib/CodeGen/CGVtable.cpp

Anders Carlsson andersca at mac.com
Sat Feb 13 16:23:00 PST 2010


Author: andersca
Date: Sat Feb 13 18:22:59 2010
New Revision: 96138

URL: http://llvm.org/viewvc/llvm-project?rev=96138&view=rev
Log:
Don't try to layout construction vtables for now.

Modified:
    cfe/trunk/lib/CodeGen/CGVtable.cpp

Modified: cfe/trunk/lib/CodeGen/CGVtable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVtable.cpp?rev=96138&r1=96137&r2=96138&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Sat Feb 13 18:22:59 2010
@@ -2416,7 +2416,8 @@
                              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());





More information about the cfe-commits mailing list