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 @@ -28,6 +28,11 @@ class SwiftObjectFileFormat {
28
28
virtual llvm::Optional<llvm::StringRef> getSegmentName () {
29
29
return {};
30
30
}
31
+ // / Get the name of the segment in the symbol rich binary that may contain
32
+ // / Swift meteadata.
33
+ virtual llvm::Optional<llvm::StringRef> getSymbolRichSegmentName () {
34
+ return {};
35
+ }
31
36
// / Predicate to identify if the named section can contain reflection data.
32
37
virtual bool sectionContainsReflectionData (llvm::StringRef sectionName) = 0;
33
38
};
@@ -45,10 +50,15 @@ class SwiftObjectFileFormatMachO : public SwiftObjectFileFormat {
45
50
}
46
51
llvm_unreachable (" Section type not found." );
47
52
}
53
+
48
54
llvm::Optional<llvm::StringRef> getSegmentName () override {
49
55
return {" __TEXT" };
50
56
}
51
57
58
+ llvm::Optional<llvm::StringRef> getSymbolRichSegmentName () override {
59
+ return {" __DWARF" };
60
+ }
61
+
52
62
bool sectionContainsReflectionData (llvm::StringRef sectionName) override {
53
63
return sectionName.startswith (" __swift5_" ) || sectionName == " __const" ;
54
64
}
You can’t perform that action at this time.
0 commit comments