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);