From: Rafael Espindola Date: Wed, 13 Nov 2013 18:46:32 +0000 (+0000) Subject: Drop windows specific handling of equivalent destructors. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c5f4a8c3e36942ddae5dfa396df4e109de7eb555;p=clang Drop windows specific handling of equivalent destructors. Now that the relevant tests use -mconstructor-aliases and the missing features have been implemented, we can just drop this. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194595 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index b16c59d5f6..581962f4a4 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/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);