-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Conversation
This test will only pass once that corresponding llvm fix lands: https://reviews.llvm.org/D127333 See #17150
Should be good to merge now.. PTAL |
There was a problem hiding this 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', |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good.
This test will only pass once that corresponding llvm fix lands:
https://reviews.llvm.org/D127333
See #17150