Skip to content

Commit 1d5b4be

Browse files
committed
__DATA,__const too
1 parent e1a39bf commit 1d5b4be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/swift/ABI/ObjectFile.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ class SwiftObjectFileFormatMachO : public SwiftObjectFileFormat {
6868

6969
bool sectionContainsReflectionData(llvm::StringRef sectionName) override {
7070
return sectionName.startswith("__swift5_") ||
71-
sectionName == "__DATA_CONST,__const";
71+
sectionName == "__DATA_CONST,__const" ||
72+
sectionName == "__DATA,__const";
7273
}
7374
};
7475

0 commit comments

Comments
 (0)