[cfe-commits] [Microsoft C++ ABI] Add support for static initializers

John McCall rjmccall at apple.com
Mon Apr 30 23:18:12 PDT 2012

On Apr 23, 2012, at 10:43 AM, Timur Iskhodzhanov wrote:
> Slightly improved patch attaced
> On Mon, Apr 23, 2012 at 9:37 PM, Timur Iskhodzhanov <timurrrr at google.com> wrote:
>> Hi John,
>> Can you please review the attached patch?
>> See http://llvm.org/bugs/show_bug.cgi?id=12594 for the details.
>> Thanks,
>> Timur Iskhodzhanov,
>> Google Russia
> <bug_12594_2.patch>

I abstracted the how-to-emit-a-global-dtor logic into the C++ ABI helper
and committed the basic thrust of this in r155894.  Please do continue
to look at this and figure out how MSVC emits weak global initializers;
I'm sure there's *something* in place to prevent the initializer from
running multiple times from multiple translation units.


More information about the cfe-commits mailing list