From d172e91f2ada3ad24f889a278d48bc36346ba972 Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Mon, 17 Aug 2009 19:04:50 +0000 Subject: Patch to 1) synthesizing non-trivial default destructor when one is not provided by user. 2) More complete emission of ctor prologue when it has no initializer list or when it is synthesized. llvm-svn: 79269 --- clang/lib/CodeGen/CodeGenFunction.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/lib/CodeGen/CodeGenFunction.h') diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index c41af94e20b..e2aba1b2baa 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -403,6 +403,11 @@ public: llvm::Function *Fn, const FunctionArgList &Args); + void SynthesizeDefaultDestructor(const CXXDestructorDecl *CD, + const FunctionDecl *FD, + llvm::Function *Fn, + const FunctionArgList &Args); + /// EmitDtorEpilogue - Emit all code that comes at the end of class's /// destructor. This is to call destructors on members and base classes /// in reverse order of their construction. -- cgit v1.2.3