Skip to content
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

Ignore implicit ctors in anonymous structs. #9

Merged
merged 1 commit into from May 30, 2014

Conversation

dnovillo
Copy link
Collaborator

For anonymous structs Clang generates no name for its implicit ctor. This
was confusing the profile reader in LLVM. Since we can't really map
an empty name to a callgraph node, this patch simply ignores anonymous
structs.

This should not be an issue. If an anonymous struct has a substantial
amount of cycles in its ctor, so will its parent.

Additonally, this patch makes the profile converter ignore functions
for which we have no locations with non-zero samples. They are not
worth writing out.

For anonymous structs Clang generates no name for its implicit ctor. This
was confusing the profile reader in LLVM. Since we can't really map
an empty name to a callgraph node, this patch simply ignores anonymous
structs.

This should not be an issue. If an anonymous struct has a substantial
amount of cycles in its ctor, so will its parent.

Additonally, this patch makes the profile converter ignore functions
for which we have no locations with non-zero samples. They are not
worth writing out.
danielcdh added a commit that referenced this pull request May 30, 2014
Ignore implicit ctors in anonymous structs.
@danielcdh danielcdh merged commit f644818 into master May 30, 2014
@dnovillo dnovillo deleted the fix-anonymous-structs branch March 27, 2016 20:41
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.

None yet

2 participants