-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Remove getName method from ValueDecl #9977
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
Conversation
Please test with following pull request: @swift-ci Please test |
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.
Looks good. Note that I haven't gotten to the diagnostic one yet. I want to actually pay attention there and see if I agree with your choices.
@@ -400,7 +400,9 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo { | |||
} | |||
|
|||
SmallVector<char, 64> Buf; | |||
StringRef Name = (VD->getName().str() + Twine(Kind)).toStringRef(Buf); | |||
// TODO: Handle special names |
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.
Subscripts can definitely get here, so we'll need to have some way of handling it.
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.
This is handled in #9979 by calling through to userFacingStr
once it exists. That's why I put the TODO there
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.
Ah, I got the order of patches mixed up. Makes sense.
4252514
to
5c93a0a
Compare
Just a rebase onto the new diagnostics commit @swift-ci please test |
5c93a0a
to
ece660f
Compare
@swift-ci Please test |
Build failed |
Build failed |
Push the getName method from ValueDecl down to only those types that are guaranteed to have a name that is backed by an identifier and that will not be special.
ece660f
to
2078ec6
Compare
@swift-ci Please test and merge |
@swift-ci Please test OS X platform |
Build failed |
We had breakage on master. Should be fixed now... Let's try this again. |
Build failed |
Build failed |
@swift-ci Please test OS X Platform |
Push the getName method from ValueDecl down to only those types that are
guaranteed to have a name that is backed by an identifier and that will
not be special.
This includes the changes from #9975 and #9976