Clean up of -fapple-kext abi code. No change otherwise.

llvm-svn: 124807
This commit is contained in:
Fariborz Jahanian
2011-02-03 19:27:17 +00:00
parent ff885ce667
commit 7f6f81ba9b
4 changed files with 10 additions and 12 deletions

View File

@@ -1270,7 +1270,8 @@ void CodeGenFunction::EmitCXXDestructorCall(const CXXDestructorDecl *DD,
ForVirtualBase);
llvm::Value *Callee = 0;
if (getContext().getLangOptions().AppleKext)
Callee = BuildAppleKextVirtualDestructorCall(DD, Type);
Callee = BuildAppleKextVirtualDestructorCall(DD, Type,
DD->getParent());
if (!Callee)
Callee = CGM.GetAddrOfCXXDestructor(DD, Type);