diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-10 19:24:06 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-10 19:24:06 +0000 |
commit | 1254a0978c17529129452af225510b596f1aa6e5 (patch) | |
tree | cdadfec2d43e457e45f26f3265081ba1697ced9e /clang/lib/CodeGen/CodeGenFunction.h | |
parent | ba64574c9a38308dd704c63659b984394a4db67c (diff) | |
download | bcm5719-llvm-1254a0978c17529129452af225510b596f1aa6e5.tar.gz bcm5719-llvm-1254a0978c17529129452af225510b596f1aa6e5.zip |
This patch implements Code gen. for destruction of
global array of objects.
llvm-svn: 86701
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 593840213ae..f42376b6232 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -646,6 +646,10 @@ public: const ArrayType *Array, llvm::Value *This); + llvm::Constant * GenerateCXXAggrDestructorHelper(const CXXDestructorDecl *D, + const ArrayType *Array, + llvm::Value *This); + void EmitCXXDestructorCall(const CXXDestructorDecl *D, CXXDtorType Type, llvm::Value *This); @@ -994,7 +998,7 @@ public: /// EmitCXXGlobalDtorRegistration - Emits a call to register the global ptr /// with the C++ runtime so that its destructor will be called at exit. - void EmitCXXGlobalDtorRegistration(const CXXDestructorDecl *Dtor, + void EmitCXXGlobalDtorRegistration(llvm::Constant *DtorFn, llvm::Constant *DeclPtr); /// GenerateCXXGlobalInitFunc - Generates code for initializing global |