diff options
Diffstat (limited to 'clang/lib/CodeGen/CGCXX.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCXX.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp index b16c59d5f65..581962f4a4d 100644 --- a/clang/lib/CodeGen/CGCXX.cpp +++ b/clang/lib/CodeGen/CGCXX.cpp @@ -263,15 +263,6 @@ CodeGenModule::GetAddrOfCXXDestructor(const CXXDestructorDecl *dtor, CXXDtorType dtorType, const CGFunctionInfo *fnInfo, llvm::FunctionType *fnType) { - // If the class has no virtual bases, then the complete and base destructors - // are equivalent, for all C++ ABIs supported by clang. We can save on code - // size by calling the base dtor directly, especially if we'd have to emit a - // thunk otherwise. - // FIXME: We should do this for Itanium, after verifying that nothing breaks. - if (dtorType == Dtor_Complete && dtor->getParent()->getNumVBases() == 0 && - getCXXABI().useThunkForDtorVariant(dtor, Dtor_Complete)) - dtorType = Dtor_Base; - GlobalDecl GD(dtor, dtorType); StringRef name = getMangledName(GD); |