diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-17 19:04:50 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-17 19:04:50 +0000 |
| commit | d172e91f2ada3ad24f889a278d48bc36346ba972 (patch) | |
| tree | a9162ba53665e0c71db32dca5c542f47b6cff5c8 /clang/lib/CodeGen/CodeGenFunction.h | |
| parent | 436bd9f7708304dac6e7091765c2f6d2eb3c1fcc (diff) | |
| download | bcm5719-llvm-d172e91f2ada3ad24f889a278d48bc36346ba972.tar.gz bcm5719-llvm-d172e91f2ada3ad24f889a278d48bc36346ba972.zip | |
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 5 |
1 files changed, 5 insertions, 0 deletions
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. |

