diff options
author | Reid Kleckner <reid@kleckner.net> | 2013-12-20 23:58:52 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2013-12-20 23:58:52 +0000 |
commit | b60a3d5bc1de66dfe7532d249d75ba8f4e9d14e7 (patch) | |
tree | d408e7a7af3b5fd1e4b6a5ff22f82f95e518a067 /clang/lib/CodeGen/CGVTT.cpp | |
parent | 3275dc4586eea2b769955e1c7160f2cb99f7a010 (diff) | |
download | bcm5719-llvm-b60a3d5bc1de66dfe7532d249d75ba8f4e9d14e7.tar.gz bcm5719-llvm-b60a3d5bc1de66dfe7532d249d75ba8f4e9d14e7.zip |
Eliminate the ItaniumVTableContext object from CodeGenVTables
Now CodeGenVTables has only one VTableContext object, which is either
Itanium or Microsoft.
Fixes a FIXME with no functionality change intended.
Ideally we could avoid the downcasts by pushing the things that
reference the Itanium vtable context into ItaniumCXXABI.cpp, but we're
not there yet.
llvm-svn: 197845
Diffstat (limited to 'clang/lib/CodeGen/CGVTT.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGVTT.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGVTT.cpp b/clang/lib/CodeGen/CGVTT.cpp index bfff4705889..bca5f29d946 100644 --- a/clang/lib/CodeGen/CGVTT.cpp +++ b/clang/lib/CodeGen/CGVTT.cpp @@ -66,7 +66,8 @@ CodeGenVTables::EmitVTTDefinition(llvm::GlobalVariable *VTT, if (VTTVT.getBase() == RD) { // Just get the address point for the regular vtable. AddressPoint = - ItaniumVTContext.getVTableLayout(RD).getAddressPoint(i->VTableBase); + getItaniumVTableContext().getVTableLayout(RD).getAddressPoint( + i->VTableBase); assert(AddressPoint != 0 && "Did not find vtable address point!"); } else { AddressPoint = VTableAddressPoints[i->VTableIndex].lookup(i->VTableBase); |