Skip to content

Implement private discriminator lookup for debug map symbol files. #674

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 2 commits into from
Jan 31, 2020

Conversation

adrian-prantl
Copy link

It turns out that this wasn;t implemented at all and the existing
tests were working by coincidence because RegisterAllVariables() also
injects local copies of global variables, which bypasses the
discriminator matching. After properly implementing discriminator
support a couple of additional bugs got uncovered which should all be
fixed by this commit and the matching Swift compiler update to
serialize the isTopLevelGlobal bit on VarDecls.

rdar://problem/58846302

It turns out that this wasn;t implemented at all and the existing
tests were working by coincidence because RegisterAllVariables() also
injects local copies of global variables, which bypasses the
discriminator matching. After properly implementing discriminator
support a couple of additional bugs got uncovered which should all be
fixed by this commit and the matching Swift compiler update to
serialize the isTopLevelGlobal bit on VarDecls.

<rdar://problem/58846302>
@adrian-prantl
Copy link
Author

test with swiftlang/swift#29489

@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl
Copy link
Author

test with swiftlang/swift#29489
@swift-ci test

3 similar comments
@adrian-prantl
Copy link
Author

test with swiftlang/swift#29489
@swift-ci test

@adrian-prantl
Copy link
Author

test with swiftlang/swift#29489
@swift-ci test

@adrian-prantl
Copy link
Author

test with swiftlang/swift#29489
@swift-ci test

@xedin xedin merged commit b07f79b into swiftlang:swift/master Jan 31, 2020
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