-
Notifications
You must be signed in to change notification settings - Fork 13.3k
coverage-dump: Resolve global file IDs to filenames #140251
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
base: master
Are you sure you want to change the base?
Conversation
r? @clubby789 rustbot has assigned @clubby789. Use |
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
e2a47cd
to
447d537
Compare
The bootstrap step additions look reasonable to me (aside from some minor notes) |
447d537
to
aca0f34
Compare
This also causes the coverage-dump unit tests to run in CI and `./x test` by default.
Actually printing the filenames is deferred to a subsequent commit that will simultaneously bless all affected tests.
aca0f34
to
c65fc17
Compare
Rebased, then addressed review feedback, and added some relevant FIXMEs and other comments (diff). |
The coverage-dump tool, used by coverage tests, currently includes “global file ID” numbers in its dump output.
This PR adds support for parsing coverage filename information from LLVM assembly
.ll
files, and resolving those file IDs to the corresponding filename, for inclusion in dump output.This makes dump output more informative, especially for test cases involving multiple files, and will be important for testing expansion region support in the future.
The bootstrap changes don't necessarily have to land at the same time (e.g. they could be deferred to after the stage0 redesign if requested), but I would prefer to land them now if possible.