Skip to content

Commit 9d9c973

Browse files
committed
Reflection: Update test for reflection info being moved from DATA to TEXT
1 parent 98e3253 commit 9d9c973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/private/SwiftReflectionTest/SwiftReflectionTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ internal func getSectionInfo(_ name: String,
8585
_ imageHeader: UnsafePointer<MachHeader>) -> Section? {
8686
debugLog("BEGIN \(#function)"); defer { debugLog("END \(#function)") }
8787
var size: UInt = 0
88-
let address = getsectiondata(imageHeader, "__DATA", name, &size)
88+
let address = getsectiondata(imageHeader, "__TEXT", name, &size)
8989
guard let nonNullAddress = address else { return nil }
9090
guard size != 0 else { return nil }
9191
return Section(startAddress: nonNullAddress, size: size)

0 commit comments

Comments
 (0)