diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-13 18:46:32 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-11-13 18:46:32 +0000 |
commit | 7cf6f00f56609f1c157311b2ee5eaa23ee62e058 (patch) | |
tree | 49ef2fb8bb89745dc82850eae0a7f09d88032fb5 /clang/lib/CodeGen/CGCXX.cpp | |
parent | 580dcfbd271dd533f6329d23b9bd03d797cf4916 (diff) | |
download | bcm5719-llvm-7cf6f00f56609f1c157311b2ee5eaa23ee62e058.tar.gz bcm5719-llvm-7cf6f00f56609f1c157311b2ee5eaa23ee62e058.zip |
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.
llvm-svn: 194595
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); |