summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-07-21 06:29:51 +0000
committerJohn McCall <rjmccall@apple.com>2010-07-21 06:29:51 +0000
commit8680f87d99f79a4fa8b948b7c77a8802dd39f273 (patch)
tree0773063f3360ac133a69a5cf472e865ca7f558e3 /clang/lib/CodeGen/CodeGenFunction.h
parentda650e091f3d2f63a5016422b2b9bc0c1ce39bfe (diff)
downloadbcm5719-llvm-8680f87d99f79a4fa8b948b7c77a8802dd39f273.tar.gz
bcm5719-llvm-8680f87d99f79a4fa8b948b7c77a8802dd39f273.zip
Switch the destructor for a temporary arising from a reference binding over to
using a lazy cleanup. llvm-svn: 108994
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 60fd3a34bde..3823ff31d05 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -466,6 +466,12 @@ public:
/// non-trivial destructor.
void PushDestructorCleanup(QualType T, llvm::Value *Addr);
+ /// PushDestructorCleanup - Push a cleanup to call the
+ /// complete-object variant of the given destructor on the object at
+ /// the given address.
+ void PushDestructorCleanup(const CXXDestructorDecl *Dtor,
+ llvm::Value *Addr);
+
/// PopCleanupBlock - Will pop the cleanup entry on the stack and
/// process all branch fixups.
void PopCleanupBlock();
OpenPOWER on IntegriCloud