[swift-dev] Magic Metadata Symbol In Stubs

2016-11-17 Thread Alexis via swift-dev
I’m currently looking at pushing the storage of the empty Dictionary singleton into rodata, using Array as a reference. Most things are pretty straightforward, except the symbol for the metadata for _EmptyArrayStorage that’s hardcoded in GlobalObjects.cpp: extern "C" ClassMetadata _TMCs18_Empt

Re: [swift-dev] Magic Metadata Symbol In Stubs

2016-11-17 Thread Slava Pestov via swift-dev
> On Nov 17, 2016, at 12:36 PM, Alexis via swift-dev > wrote: > > I’m currently looking at pushing the storage of the empty Dictionary > singleton into rodata, using Array as a reference. Most things are pretty > straightforward, except the symbol for the metadata for _EmptyArrayStorage > th

Re: [swift-dev] Magic Metadata Symbol In Stubs

2016-11-18 Thread Joe Groff via swift-dev
> On Nov 17, 2016, at 12:36 PM, Alexis via swift-dev > wrote: > > I’m currently looking at pushing the storage of the empty Dictionary > singleton into rodata, using Array as a reference. Most things are pretty > straightforward, except the symbol for the metadata for _EmptyArrayStorage > th