Skip to content

Manual DWARF index: don't skip over -gmodules debug info #6146

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 4 commits into from
Jan 27, 2023

Conversation

adrian-prantl
Copy link

No description provided.

This fixes a regression introduced by
https://reviews.llvm.org/D131437. The intention of the patch was to
avoid indexing DWO skeleton units, but it also skipped over full DWARF
compile units linked via a -gmodules DW_AT_dwo_name attribute. This
patch restores the functionality and adds a test for it.

Differential Revision: https://reviews.llvm.org/D142683
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl
Copy link
Author

There are still some pending comments in the review, but I'm going to merge this for the bot health and then revert & reland the improved patch when it's ready.

@adrian-prantl adrian-prantl merged commit 459279e into swiftlang:stable/20221013 Jan 27, 2023
swift-ci pushed a commit that referenced this pull request Feb 3, 2025
swift-ci pushed a commit that referenced this pull request Feb 4, 2025
)

Normally, we use the result of the SUB flag for scalar comparison as its more compatible with CMP, but if we're testing for equality and already have a XOR we can reuse that instead.

Fixes #6146
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