summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGVTT.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-09-26 01:56:50 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-09-26 01:56:50 +0000
commitaffe111ba5b27af51d6039197f7d744cc127cd5c (patch)
tree20153649de3972d16b4d007af39e456e8691a3cb /clang/lib/CodeGen/CGVTT.cpp
parentcd3c3f4f3dca2261c63edc1235c3766c5104ea0d (diff)
downloadbcm5719-llvm-affe111ba5b27af51d6039197f7d744cc127cd5c.tar.gz
bcm5719-llvm-affe111ba5b27af51d6039197f7d744cc127cd5c.zip
Move all vtable layout data into new VTableLayout class
llvm-svn: 140506
Diffstat (limited to 'clang/lib/CodeGen/CGVTT.cpp')
-rw-r--r--clang/lib/CodeGen/CGVTT.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGVTT.cpp b/clang/lib/CodeGen/CGVTT.cpp
index cb3b39fab33..ea7b8cb4979 100644
--- a/clang/lib/CodeGen/CGVTT.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud