Skip to content

Commit 9af2bab

Browse files
committed
[Reflection] Add __TEXT to sectionContainsReflectionData
(cherry picked from commit d602e7bbd4be9eef9794a27dad7c1351fa8b7a80)
1 parent d31d5ed commit 9af2bab

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

include/swift/ABI/ObjectFile.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,7 @@ class SwiftObjectFileFormatMachO : public SwiftObjectFileFormat {
5454
}
5555

5656
bool sectionContainsReflectionData(llvm::StringRef sectionName) override {
57-
// For Mach-O, the caller must call this function twice, once with just the
58-
// section name (ex `__swift5_fieldmd`), and again with the segment
59-
// qualified section name (ex `__DATA,__const`).
60-
return sectionName.startswith("__swift5_") ||
61-
sectionName == "__DATA_CONST,__const" ||
62-
sectionName == "__DATA,__const";
57+
return sectionName.startswith("__swift5_") || sectionName == "__const";
6358
}
6459
};
6560

0 commit comments

Comments
 (0)