Pick up the right ctor/dtor type.

This commit is contained in:
Vassil Vassilev 2013-10-24 14:30:41 -05:00 committed by sftnight
parent dc410b73b8
commit b7de97fa45

View File

@ -62,7 +62,7 @@ namespace utils {
//Ctor_Base, // Base object ctor
//Ctor_CompleteAllocating // Complete object allocating ctor (unused)
mangleCtx->mangleCXXCtor(cast<CXXConstructorDecl>(D),
Ctor_Complete, RawStr);
GD.getCtorType(), RawStr);
break;
case Decl::CXXDestructor:
@ -70,7 +70,7 @@ namespace utils {
//Dtor_Complete, // Complete object dtor
//Dtor_Base // Base object dtor
mangleCtx->mangleCXXDtor(cast<CXXDestructorDecl>(D),
Dtor_Complete, RawStr);
GD.getDtorType(), RawStr);
break;
default :