File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ class SwiftObjectFileFormat {
33
33
virtual llvm::Optional<llvm::StringRef> getSegmentName () {
34
34
return {};
35
35
}
36
+ // / Get the name of the segment in the symbol rich binary that may contain
37
+ // / Swift meteadata.
38
+ virtual llvm::Optional<llvm::StringRef> getSymbolRichSegmentName () {
39
+ return {};
40
+ }
36
41
// / Predicate to identify if the named section can contain reflection data.
37
42
virtual bool sectionContainsReflectionData (llvm::StringRef sectionName) = 0;
38
43
};
@@ -61,10 +66,15 @@ class SwiftObjectFileFormatMachO : public SwiftObjectFileFormat {
61
66
}
62
67
llvm_unreachable (" Section type not found." );
63
68
}
69
+
64
70
llvm::Optional<llvm::StringRef> getSegmentName () override {
65
71
return {" __TEXT" };
66
72
}
67
73
74
+ llvm::Optional<llvm::StringRef> getSymbolRichSegmentName () override {
75
+ return {" __DWARF" };
76
+ }
77
+
68
78
bool sectionContainsReflectionData (llvm::StringRef sectionName) override {
69
79
return sectionName.startswith (" __swift5_" ) || sectionName == " __const" ;
70
80
}
You can’t perform that action at this time.
0 commit comments