Start emitting .cxx_construct methods for Objective-C-derived classes.

When we're using Objective-C's memory allocation, emit .cxx_construct
methods whenever we have instance variables with in-class
initializers. Presently, these methods are just empty stubs.

Swift SVN r12211
This commit is contained in:
Doug Gregor
2014-01-12 04:31:52 +00:00
parent 804a23e32f
commit fc7dfb2fae
19 changed files with 131 additions and 27 deletions

View File

@@ -91,6 +91,13 @@ struct SILDeclRef {
/// References the generator for a default argument of a function.
DefaultArgGenerator,
/// References the ivar initializer for the ClassDecl in loc.
///
/// Only classes that are allocated using Objective-C's allocation
/// routines have an ivar initializer, which is emitted as
/// .cxx_construct.
IVarInitializer,
/// References the ivar destroyer for the ClassDecl in loc.
///
/// Only classes that are allocated using Objective-C's allocation