Skip to content

Commit dee4c5d

Browse files
committed
[Reflection] Add __TEXT to sectionContainsReflectionData
1 parent be9d93f commit dee4c5d

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
@@ -66,12 +66,7 @@ class SwiftObjectFileFormatMachO : public SwiftObjectFileFormat {
6666
}
6767

6868
bool sectionContainsReflectionData(llvm::StringRef sectionName) override {
69-
// For Mach-O, the caller must call this function twice, once with just the
70-
// section name (ex `__swift5_fieldmd`), and again with the segment
71-
// qualified section name (ex `__DATA,__const`).
72-
return sectionName.startswith("__swift5_") ||
73-
sectionName == "__DATA_CONST,__const" ||
74-
sectionName == "__DATA,__const";
69+
return sectionName.startswith("__swift5_") || sectionName == "__const";
7570
}
7671
};
7772

0 commit comments

Comments
 (0)