This is an archive of the discontinued LLVM Phabricator instance.

[llvm-cov] Optionally fail on missing binary ID
ClosedPublic

Authored by mysterymath on Feb 17 2023, 4:32 PM.

Details

Summary

This adds the --check-binary-id flag that makes sure that an object file
is available for every binary ID mentioned in the given profile. This
should help make the tool more robust in CI environments where it's
expected that coverage mappings should be available for every object
contributing to the profile.

Diff Detail

Event Timeline

mysterymath created this revision.Feb 17 2023, 4:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 17 2023, 4:32 PM
mysterymath requested review of this revision.Feb 17 2023, 4:32 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 17 2023, 4:32 PM
Herald added subscribers: llvm-commits, Restricted Project. · View Herald Transcript
gulfem accepted this revision.Mar 1 2023, 6:54 PM
gulfem added inline comments.
llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
435

Just a cosmetic suggestion: I am not a big fan of reading a 4-level nested structure.
I was thinking that you can just use if (PathOpt) instead and swap then and else parts. You can also get rid of continue.
This is just a nit-pick, and feel free to land it without that if you prefer.

This revision is now accepted and ready to land.Mar 1 2023, 6:54 PM
mysterymath marked an inline comment as done.

Rearrange if.

This revision was landed with ongoing or failed builds.Mar 3 2023, 10:24 AM
This revision was automatically updated to reflect the committed changes.