We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5cff292 + 6e088c3 commit 8849acfCopy full SHA for 8849acf
include/swift/ABI/ObjectFile.h
@@ -28,6 +28,9 @@ class SwiftObjectFileFormat {
28
public:
29
virtual ~SwiftObjectFileFormat() {}
30
virtual llvm::StringRef getSectionName(ReflectionSectionKind section) = 0;
31
+ virtual llvm::Optional<llvm::StringRef> getSegmentName() {
32
+ return {};
33
+ }
34
};
35
36
/// Responsible for providing the Mach-O reflection section identifiers.
@@ -50,6 +53,9 @@ class SwiftObjectFileFormatMachO : public SwiftObjectFileFormat {
50
53
}
51
54
llvm_unreachable("Section type not found.");
52
55
56
+ llvm::Optional<llvm::StringRef> getSegmentName() override {
57
+ return {"__TEXT"};
58
59
60
61
/// Responsible for providing the ELF reflection section identifiers.
0 commit comments