aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGVtable.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-03-24 00:41:37 +0000
committerAnders Carlsson <andersca@mac.com>2010-03-24 00:41:37 +0000
commitd63fed48fa958ca7d9a432dab1010c272c19f215 (patch)
tree29654bef3be56a317b3436ff07d432956131a34d /lib/CodeGen/CGVtable.cpp
parent519c32880b99396034ecaedc0cd86db2e8485003 (diff)
Flip the switch and use the new vtable layout code for thunks by default. Add a thunks.cpp test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99367 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r--lib/CodeGen/CGVtable.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp
index 2e4cb61b1f..47509616c5 100644
--- a/lib/CodeGen/CGVtable.cpp
+++ b/lib/CodeGen/CGVtable.cpp
@@ -3881,13 +3881,6 @@ void CodeGenVTables::EmitThunk(GlobalDecl GD, const ThunkInfo &Thunk)
void CodeGenVTables::EmitThunks(GlobalDecl GD)
{
- // FIXME: We use the -fdump-vtable-layouts flag to trigger the new thunk
- // building code for now.
- if (!CGM.getLangOptions().DumpVtableLayouts) {
- CGM.BuildThunksForVirtual(GD);
- return;
- }
-
const CXXMethodDecl *MD =
cast<CXXMethodDecl>(GD.getDecl())->getCanonicalDecl();