From 98de3d74d2830df5a42665c2679d6b5f778365da Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 13 Jul 2011 03:01:35 +0000 Subject: Generalize the routine for destroying an object with static storage duration, then explicitly exempt ownership-qualified types from it. llvm-svn: 135028 --- clang/lib/CodeGen/CodeGenFunction.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenFunction.h') diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 6236f3e1e86..d1c6d8bde94 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -1204,6 +1204,10 @@ public: Destroyer &destroyer, bool useEHCleanupForArray); void emitDestroy(llvm::Value *addr, QualType type, Destroyer &destroyer, bool useEHCleanupForArray); + llvm::Function *generateDestroyHelper(llvm::Constant *addr, + QualType type, + Destroyer &destroyer, + bool useEHCleanupForArray); void emitArrayDestroy(llvm::Value *begin, llvm::Value *end, QualType type, Destroyer &destroyer, bool useEHCleanup); @@ -1708,10 +1712,6 @@ public: llvm::Value *NumElements, llvm::Value *This); - llvm::Function *GenerateCXXAggrDestructorHelper(const CXXDestructorDecl *D, - const ArrayType *Array, - llvm::Value *This); - void EmitCXXDestructorCall(const CXXDestructorDecl *D, CXXDtorType Type, bool ForVirtualBase, llvm::Value *This); -- cgit v1.2.3