File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -689,7 +689,8 @@ class CaptureDescriptorBuilder : public ReflectionMetadataBuilder {
689
689
/* isConstant*/ true ,
690
690
llvm::GlobalValue::PrivateLinkage,
691
691
init,
692
- " capture_descriptor" );
692
+ " \x01 l__swift3_capture_descriptor" );
693
+ var->setSection (IGM.getCaptureDescriptorMetadataSectionName ());
693
694
var->setAlignment (IGM.getPointerAlignment ().getValue ());
694
695
695
696
auto replacer = llvm::ConstantExpr::getBitCast (var, IGM.Int8PtrTy );
@@ -731,6 +732,10 @@ std::string IRGenModule::getAssociatedTypeMetadataSectionName() {
731
732
return getReflectionSectionName (*this , " assocty" );
732
733
}
733
734
735
+ std::string IRGenModule::getCaptureDescriptorMetadataSectionName () {
736
+ return getReflectionSectionName (*this , " capture" );
737
+ }
738
+
734
739
std::string IRGenModule::getReflectionStringsSectionName () {
735
740
return getReflectionSectionName (*this , " reflstr" );
736
741
}
Original file line number Diff line number Diff line change @@ -632,6 +632,7 @@ class IRGenModule {
632
632
std::string getBuiltinTypeMetadataSectionName ();
633
633
std::string getFieldTypeMetadataSectionName ();
634
634
std::string getAssociatedTypeMetadataSectionName ();
635
+ std::string getCaptureDescriptorMetadataSectionName ();
635
636
std::string getReflectionStringsSectionName ();
636
637
std::string getReflectionTypeRefSectionName ();
637
638
You can’t perform that action at this time.
0 commit comments