File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ class SwiftObjectFileFormat {
31
31
virtual llvm::Optional<llvm::StringRef> getSegmentName () {
32
32
return {};
33
33
}
34
+ // / Predicate to identify if the named section can contain reflection data.
34
35
virtual bool sectionContainsReflectionData (llvm::StringRef sectionName) {
35
36
return getSectionName (fieldmd) == sectionName ||
36
37
getSectionName (assocty) == sectionName ||
@@ -43,8 +44,6 @@ class SwiftObjectFileFormat {
43
44
44
45
// / Responsible for providing the Mach-O reflection section identifiers.
45
46
class SwiftObjectFileFormatMachO : public SwiftObjectFileFormat {
46
- using super = SwiftObjectFileFormat;
47
-
48
47
public:
49
48
llvm::StringRef getSectionName (ReflectionSectionKind section) override {
50
49
switch (section) {
@@ -68,7 +67,7 @@ class SwiftObjectFileFormatMachO : public SwiftObjectFileFormat {
68
67
}
69
68
70
69
bool sectionContainsReflectionData (llvm::StringRef sectionName) override {
71
- return super::sectionContainsReflectionData ( sectionName) ||
70
+ return sectionName. startswith ( " __swift5_ " ) ||
72
71
sectionName == " __DATA_CONST,__const" ;
73
72
}
74
73
};
You can’t perform that action at this time.
0 commit comments