aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGVtable.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-03-26 04:13:46 +0000
committerAnders Carlsson <andersca@mac.com>2010-03-26 04:13:46 +0000
commit0bf4089d190ba80bc2ef5734ab736b6ea6d01fbc (patch)
treefbed46be9b5744c30796392c3c4e65407d36f5cd /lib/CodeGen/CGVtable.cpp
parent19f191fad178baf25388d972c71facbd26932693 (diff)
Use the new vtable layout code for construction vtables.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99606 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r--lib/CodeGen/CGVtable.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp
index 77748a6e78..65788259e6 100644
--- a/lib/CodeGen/CGVtable.cpp
+++ b/lib/CodeGen/CGVtable.cpp
@@ -4186,16 +4186,6 @@ CodeGenVTables::GenerateConstructionVTable(const CXXRecordDecl *RD,
const BaseSubobject &Base,
bool BaseIsVirtual,
VTableAddressPointsMapTy& AddressPoints) {
- if (!CGM.getLangOptions().DumpVtableLayouts) {
- llvm::GlobalVariable *VTable =
- GenerateVtable(llvm::GlobalValue::InternalLinkage,
- /*GenerateDefinition=*/true,
- RD, Base.getBase(), Base.getBaseOffset(),
- BaseIsVirtual, AddressPoints);
-
- return VTable;
- }
-
VtableBuilder Builder(*this, Base.getBase(), Base.getBaseOffset(),
/*MostDerivedClassIsVirtual=*/BaseIsVirtual, RD);