diff options
author | John McCall <rjmccall@apple.com> | 2011-07-13 03:01:35 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-07-13 03:01:35 +0000 |
commit | a91f6661c4685fecee6dc09bdaef73254c1aaa06 (patch) | |
tree | 20ebcef78924c64b7659823e0ecbd92ac592ef04 /lib/CodeGen/CodeGenFunction.h | |
parent | e7003b72e691c4d83ba5516c58bccc2f2a4b3fe0 (diff) |
Generalize the routine for destroying an object with static
storage duration, then explicitly exempt ownership-qualified
types from it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index 6236f3e1e8..d1c6d8bde9 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/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); |