Skip to content

Commit 967b47f

Browse files
committed
IRGen: adjust the replacemnts section for Windows
Group the section for the replacements on PE/COFF. The group is needed to ensure that we are able to order the marker for the start and stop properly. Without the grouping there is no way to guarantee the ordering.
1 parent a7f8f89 commit 967b47f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ static std::string getDynamicReplacementSection(IRGenModule &IGM) {
12331233
sectionName = "swift5_replace";
12341234
break;
12351235
case llvm::Triple::COFF:
1236-
sectionName = ".sw5repl";
1236+
sectionName = ".sw5repl$B";
12371237
break;
12381238
default:
12391239
llvm_unreachable("Don't know how to emit field records table for "

0 commit comments

Comments
 (0)