Skip to content

Specify the segment name that contains the reflection sections. #41021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 27, 2022

Conversation

augusto2112
Copy link
Contributor

Specify the segment name that contains the reflection sections in different object file formats.

@augusto2112
Copy link
Contributor Author

@swift-ci smoke test

@@ -28,6 +28,9 @@ class SwiftObjectFileFormat {
public:
virtual ~SwiftObjectFileFormat() {}
virtual llvm::StringRef getSectionName(ReflectionSectionKind section) = 0;
virtual llvm::Optional<llvm::StringRef> getContainingSegmentName() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be fine to name this getSegmentName

@augusto2112 augusto2112 force-pushed the reflection-segment-name branch from 6ffed2b to 6e088c3 Compare January 26, 2022 21:13
@augusto2112
Copy link
Contributor Author

@swift-ci smoke test

Copy link
Contributor

@adrian-prantl adrian-prantl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an odd one, because MachO is the only format that even has the concept of a segment, but I can't really think of a much better interface for this either. getReflectionSectionParentName() does not sound any better to me.

@augusto2112 augusto2112 merged commit 8849acf into swiftlang:main Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants