[cfe-dev] blocks/lambdas in clang
Chris Lattner
clattner at apple.com
Tue Jan 12 13:33:37 PST 2010
On Jan 12, 2010, at 1:26 PM, Blaine Garst wrote:
> The compiler initializes the first word of every block to one of two
> symbols (the other being _NSConcreteStackBlock), that being one of
> them, so as to enable Objective-C treating blocks as objects if and
> when the objc runtime is loaded. The blocks runtime for the most
> part ignores these values until such a time. A block copy operation
> will use another symbol, so in total I think you'll need
> _NSConcreteMallocBlock also.
This runtime support code is available at http://compiler-rt.llvm.org/
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100112/ee795051/attachment.html>
More information about the cfe-dev
mailing list