Skip to content

Commit a9bf6c6

Browse files
committed
IRGen: correct field metadata section name on COFF
COFF has a section name limit which was being exceeded. Correct the section name to what was expected (the tests are lenient and would accept the ELF name as well). Furthermore, ensure that the section is emitted into the B group so that it can be collated and markers inserted.
1 parent bdd3695 commit a9bf6c6

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
@@ -2858,7 +2858,7 @@ llvm::Constant *IRGenModule::emitFieldDescriptors() {
28582858
sectionName = "swift5_fieldmd";
28592859
break;
28602860
case llvm::Triple::COFF:
2861-
sectionName = ".swift5_fieldmd";
2861+
sectionName = ".sw5flmd$B";
28622862
break;
28632863
case llvm::Triple::UnknownObjectFormat:
28642864
llvm_unreachable("Don't know how to emit field records table for "

0 commit comments

Comments
 (0)