Skip to content

Commit 51ae5a8

Browse files
committed
Reflection: Place reflection metadata in TEXT segment
1 parent 1d5b9b0 commit 51ae5a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenReflection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ static std::string getReflectionSectionName(IRGenModule &IGM,
707707
case llvm::Triple::MachO:
708708
assert(Base.size() <= 7
709709
&& "Mach-O section name length must be <= 16 characters");
710-
OS << "__DATA, __swift3_" << Base << ", regular, no_dead_strip";
710+
OS << "__TEXT, __swift3_" << Base << ", regular, no_dead_strip";
711711
break;
712712
case llvm::Triple::ELF:
713713
OS << ".swift3_" << Base;

0 commit comments

Comments
 (0)