diff options
author | Anders Carlsson <andersca@mac.com> | 2009-05-05 04:44:02 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-05-05 04:44:02 +0000 |
commit | 2a131fbca2a51085dc083b8c56a2d4ced3cf1413 (patch) | |
tree | b91d1326dbab11e3fd4238569e2bcffcbffe4a70 /lib/CodeGen/CGCXX.cpp | |
parent | b9c7cbb2cce42142c86568733bea4449b07d1757 (diff) |
Refactor global decls to hold either a regular Decl or a CXXConstructorDecl + ctor type or a CXXDestructorDecl + dtor type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGCXX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index 54a3e59378..da3cd3ca10 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/lib/CodeGen/CGCXX.cpp @@ -176,8 +176,8 @@ void CodeGenModule::EmitCXXConstructors(const CXXConstructorDecl *D) { return; } - EmitCXXConstructor(D, Ctor_Complete); - EmitCXXConstructor(D, Ctor_Base); + EmitGlobal(GlobalDecl(D, Ctor_Complete)); + EmitGlobal(GlobalDecl(D, Ctor_Base)); } void CodeGenModule::EmitCXXConstructor(const CXXConstructorDecl *D, |