diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-09-26 01:56:50 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-09-26 01:56:50 +0000 |
commit | e09cdf46aa2b86c24e6bf7a7ead2eaded964f2ff (patch) | |
tree | d791d1df91accd84664201b0db96ed10ae3fdba6 /lib/CodeGen/CGVTT.cpp | |
parent | ba6ffeb51f89aefbec50347e4c73c17e825bd694 (diff) |
Move all vtable layout data into new VTableLayout class
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVTT.cpp')
-rw-r--r-- | lib/CodeGen/CGVTT.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGVTT.cpp b/lib/CodeGen/CGVTT.cpp index cb3b39fab3..ea7b8cb497 100644 --- a/lib/CodeGen/CGVTT.cpp +++ b/lib/CodeGen/CGVTT.cpp @@ -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); |