Skip to content
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

Add pthread + dylink test for side-module-defined C++ comdat info. NFC #17180

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jun 8, 2022

This test will only pass once that corresponding llvm fix lands:
https://reviews.llvm.org/D127333

See #17150

@sbc100 sbc100 requested a review from dschuff June 8, 2022 21:19
This test will only pass once that corresponding llvm fix lands:
https://reviews.llvm.org/D127333

See #17150
@sbc100
Copy link
Collaborator Author

sbc100 commented Jun 15, 2022

Should be good to merge now.. PTAL

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

comat => comdat in title

'-sSIDE_MODULE=1'])
self.do_runf(
'main.cpp',
'main: Foo typeid: 3Foo\nside: Foo typeid: 3Foo\n',
Copy link
Member

Choose a reason for hiding this comment

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

Will this 3 remain the same in the future? How is that constant determined?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Its the number of characters in Foo.

I guess this mangling could possibly change, but only if/when we update libc++/libc++abi I imagine.. which is rare.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Apparently the string format itself is considered implementation defined: https://en.cppreference.com/w/cpp/types/type_info/name

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good.

@sbc100 sbc100 changed the title Add pthread + dylink test for side-module-defined C++ comat info. NFC Add pthread + dylink test for side-module-defined C++ comdat info. NFC Jun 15, 2022
@sbc100 sbc100 disabled auto-merge June 15, 2022 17:03
@sbc100 sbc100 enabled auto-merge (squash) June 15, 2022 17:03
@sbc100 sbc100 disabled auto-merge June 15, 2022 17:05
@sbc100 sbc100 enabled auto-merge (squash) June 15, 2022 17:05
@sbc100 sbc100 merged commit b6c666a into main Jun 15, 2022
@sbc100 sbc100 deleted the rtti_test branch June 15, 2022 17:54
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.

2 participants