summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
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
commit68fdb871dc1cbc662987d204de823f24f0b3f837 (patch)
tree72d3a371f28228a893881690500e2b768e0aaac1 /clang/lib/CodeGen
parent6c2d178957bc01a2caa468c9b946379b85f14c8c (diff)
downloadbcm5719-llvm-68fdb871dc1cbc662987d204de823f24f0b3f837.tar.gz
bcm5719-llvm-68fdb871dc1cbc662987d204de823f24f0b3f837.zip
Flip the switch and use the new vtable layout code for thunks by default. Add a thunks.cpp test.
llvm-svn: 99367
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGVtable.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp
index 2e4cb61b1f6..47509616c50 100644
--- a/clang/lib/CodeGen/CGVtable.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud