mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user