mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Rename swift sections from swift4 to swift5
rdar://38465220
This commit is contained in:
@@ -107,12 +107,12 @@ internal func getSectionInfo(_ name: String,
|
||||
///
|
||||
/// An image of interest must have the following sections in the __DATA
|
||||
/// segment:
|
||||
/// - __swift4_fieldmd
|
||||
/// - __swift4_assocty
|
||||
/// - __swift4_builtin
|
||||
/// - __swift4_capture
|
||||
/// - __swift4_typeref
|
||||
/// - __swift4_reflstr (optional, may have been stripped out)
|
||||
/// - __swift5_fieldmd
|
||||
/// - __swift5_assocty
|
||||
/// - __swift5_builtin
|
||||
/// - __swift5_capture
|
||||
/// - __swift5_typeref
|
||||
/// - __swift5_reflstr (optional, may have been stripped out)
|
||||
///
|
||||
/// - Parameter i: The index of the loaded image as reported by Dyld.
|
||||
/// - Returns: A `ReflectionInfo` containing the locations of all of the
|
||||
@@ -123,12 +123,12 @@ internal func getReflectionInfoForImage(atIndex i: UInt32) -> ReflectionInfo? {
|
||||
to: UnsafePointer<MachHeader>.self)
|
||||
|
||||
let imageName = _dyld_get_image_name(i)!
|
||||
let fieldmd = getSectionInfo("__swift4_fieldmd", header)
|
||||
let assocty = getSectionInfo("__swift4_assocty", header)
|
||||
let builtin = getSectionInfo("__swift4_builtin", header)
|
||||
let capture = getSectionInfo("__swift4_capture", header)
|
||||
let typeref = getSectionInfo("__swift4_typeref", header)
|
||||
let reflstr = getSectionInfo("__swift4_reflstr", header)
|
||||
let fieldmd = getSectionInfo("__swift5_fieldmd", header)
|
||||
let assocty = getSectionInfo("__swift5_assocty", header)
|
||||
let builtin = getSectionInfo("__swift5_builtin", header)
|
||||
let capture = getSectionInfo("__swift5_capture", header)
|
||||
let typeref = getSectionInfo("__swift5_typeref", header)
|
||||
let reflstr = getSectionInfo("__swift5_reflstr", header)
|
||||
return ReflectionInfo(imageName: String(validatingUTF8: imageName)!,
|
||||
fieldmd: fieldmd,
|
||||
assocty: assocty,
|
||||
|
||||
Reference in New Issue
Block a user