Skip to content

Conversation

@vedantk
Copy link
Contributor

@vedantk vedantk commented Jun 4, 2019

Assign separate SILProfiler instances to stored property initializers
and constructors.

Starting with rdar://39460313, coverage reporting for these constructs
was bundled up into a single SILProfiler uniqued by the NominalTypeDecl.
There are two problems with doing this.

First, the shared SILProfiler is given a fake name that can't be
demangled. That breaks Xcode's reports. Second, the relationship
between SILProfiler and SILFunction is supposed to be 1:1. Having a
shared SILProfiler muddies things a bit and requires extra bookkeeping.

rdar://47467864

…ctors

Assign separate SILProfiler instances to stored property initializers
and constructors.

Starting with rdar://39460313, coverage reporting for these constructs
was bundled up into a single SILProfiler uniqued by the NominalTypeDecl.
There are two problems with doing this.

First, the shared SILProfiler is given a fake name that can't be
demangled. That breaks Xcode's reports.  Second, the relationship
between SILProfiler and SILFunction is supposed to be 1:1. Having a
shared SILProfiler muddies things a bit and requires extra bookkeeping.

rdar://47467864
@vedantk
Copy link
Contributor Author

vedantk commented Jun 4, 2019

@swift-ci smoke test

@vedantk
Copy link
Contributor Author

vedantk commented Jun 4, 2019

@swift-ci Please test source compatibility

@vedantk vedantk merged commit 569c8af into swiftlang:master Jun 5, 2019
@vedantk vedantk deleted the eng/PR-47467864 branch June 5, 2019 17:38
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.

1 participant