From 0a63741a3f969f02bcd20121602e7a662933eae9 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Fri, 29 May 2009 21:03:38 +0000 Subject: Add code for emitting C++ destructors. Not used yet. llvm-svn: 72591 --- clang/lib/CodeGen/CodeGenModule.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 04693fd502e..b69301ed589 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -576,6 +576,8 @@ void CodeGenModule::EmitGlobalDefinition(GlobalDecl GD) { if (const CXXConstructorDecl *CD = dyn_cast(D)) EmitCXXConstructor(CD, GD.getCtorType()); + else if (const CXXDestructorDecl *DD = dyn_cast(D)) + EmitCXXDestructor(DD, GD.getDtorType()); else if (isa(D)) EmitGlobalFunctionDefinition(GD); else if (const VarDecl *VD = dyn_cast(D)) -- cgit v1.2.3