diff options
author | Anders Carlsson <andersca@mac.com> | 2009-05-29 21:03:38 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-05-29 21:03:38 +0000 |
commit | 7267c1693abe7875b0c57268be05005ae013c6c9 (patch) | |
tree | b8990f2f322c9ef25b1ba811a3311e5c8294d616 /lib/CodeGen/CodeGenModule.cpp | |
parent | d249e1d1f1498b81314459ceda19d6ff25c278ad (diff) |
Add code for emitting C++ destructors. Not used yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72591 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 04693fd502..b69301ed58 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -576,6 +576,8 @@ void CodeGenModule::EmitGlobalDefinition(GlobalDecl GD) { if (const CXXConstructorDecl *CD = dyn_cast<CXXConstructorDecl>(D)) EmitCXXConstructor(CD, GD.getCtorType()); + else if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(D)) + EmitCXXDestructor(DD, GD.getDtorType()); else if (isa<FunctionDecl>(D)) EmitGlobalFunctionDefinition(GD); else if (const VarDecl *VD = dyn_cast<VarDecl>(D)) |