Move all vtable layout data into new VTableLayout class

llvm-svn: 140506
This commit is contained in:
Peter Collingbourne
2011-09-26 01:56:50 +00:00
parent cd3c3f4f3d
commit affe111ba5
5 changed files with 150 additions and 118 deletions

View File

@@ -67,7 +67,8 @@ CodeGenVTables::EmitVTTDefinition(llvm::GlobalVariable *VTT,
uint64_t AddressPoint;
if (VTTVT.getBase() == RD) {
// Just get the address point for the regular vtable.
AddressPoint = VTContext.getAddressPoint(i->VTableBase, RD);
AddressPoint = VTContext.getVTableLayout(RD)
.getAddressPoint(i->VTableBase);
assert(AddressPoint != 0 && "Did not find vtable address point!");
} else {
AddressPoint = VTableAddressPoints[i->VTableIndex].lookup(i->VTableBase);