[cfe-commits] MS constructor / destructor improvements

João Matos ripzonetriton at gmail.com
Tue Jun 26 23:23:31 PDT 2012


>From what I understood, MSVC emits a "scalar deleting" and "vector
deleting" destructors, while also mentioning a "vbase destructor". I'm
not so sure this patch is 100% correct, but it is definitely a
work-in-progress. I tried to map them as accurately as possible, but
more research needs to be done to test in MSVC and check how it works
in each case.

I intend to keep working on it, after we also merge some of the code
by r4start. This patch helps in the meantime, and fixes a big bug
since Clang generates the same mangling while generating the
constructors / dtors and asserts. See
http://llvm.org/bugs/show_bug.cgi?id=12784

The patch allow those cases to start working.

On Wed, Jun 27, 2012 at 7:11 AM, Дмитрий Соколов <r4start at gmail.com> wrote:
> 2012/6/27 John McCall <rjmccall at apple.com>
>>
>> On Jun 24, 2012, at 5:41 PM, João Matos wrote:
>> > Attached is a patch that adds proper ctor / dtor mangling to MS ABI.
>> > I'm not really fond of adding the ctor / dtor type to the base class,
>> > but all other alternatives seemed intrusive.
>>
>> I'm confused.  I thought MSVC didn't distinguish between base and complete
>> destructors?
>>
> Hi.
> This patch is provide support for mangling special operators, like scalar
> deleting destructor(http://mearie.org/documents/mscmangle/index.en see
> section 'special names').
>
>  - Dmitry Sokolov



-- 
João Matos




More information about the cfe-commits mailing list