Skip to content

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

Merged
merged 1 commit into from
Jun 17, 2017

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 30, 2017

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

@ahoppen
Copy link
Member Author

ahoppen commented May 30, 2017

Please test with following pull request:
apple/swift-lldb#206

@swift-ci Please test

Copy link
Contributor

@jrose-apple jrose-apple left a 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
Copy link
Contributor

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.

Copy link
Member Author

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

Copy link
Contributor

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.

@ahoppen ahoppen force-pushed the pdm-remove-get-name branch from 4252514 to 5c93a0a Compare May 31, 2017 11:49
@ahoppen
Copy link
Member Author

ahoppen commented May 31, 2017

Just a rebase onto the new diagnostics commit

@swift-ci please test

@ahoppen ahoppen force-pushed the pdm-remove-get-name branch from 5c93a0a to ece660f Compare May 31, 2017 14:00
@ahoppen
Copy link
Member Author

ahoppen commented May 31, 2017

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 5c93a0a5b43a7da1fb05725f1d6be484bcdd363c
Test requested by - @ahoppen

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 5c93a0a5b43a7da1fb05725f1d6be484bcdd363c
Test requested by - @ahoppen

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.
@ahoppen ahoppen force-pushed the pdm-remove-get-name branch from ece660f to 2078ec6 Compare June 15, 2017 19:59
@ahoppen
Copy link
Member Author

ahoppen commented Jun 15, 2017

@swift-ci Please test and merge

@ahoppen
Copy link
Member Author

ahoppen commented Jun 16, 2017

@swift-ci Please test OS X platform

@swiftlang swiftlang deleted a comment from swift-ci Jun 16, 2017
@ahoppen
Copy link
Member Author

ahoppen commented Jun 16, 2017

Unrelated failure resolved in 946cc75

@swift-ci Please test OS X platform

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 2078ec6
Test requested by - @ahoppen

@najacque
Copy link
Contributor

We had breakage on master. Should be fixed now... Let's try this again.
@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - ece660f
Test requested by - @najacque

@swift-ci
Copy link
Contributor

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 2078ec6
Test requested by - @najacque

@ahoppen
Copy link
Member Author

ahoppen commented Jun 16, 2017

@swift-ci Please test OS X Platform

@ahoppen ahoppen merged commit 5cda94b into swiftlang:master Jun 17, 2017
@ahoppen ahoppen deleted the pdm-remove-get-name branch June 26, 2017 16:51
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.

4 participants