This is an archive of the discontinued LLVM Phabricator instance.

[clang] Allow the OpenBSD driver to link the libclang_rt.profile library.
ClosedPublic

Authored by fcambus on Sep 3 2021, 9:36 AM.

Details

Summary

With this change, passing -fprofile-instr-generate -fcoverage-mapping
when building programs will attempt linking against libclang_rt.profile.

Diff Detail

Event Timeline

fcambus requested review of this revision.Sep 3 2021, 9:36 AM
fcambus created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 3 2021, 9:36 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
brad accepted this revision.Sep 3 2021, 1:55 PM
This revision is now accepted and ready to land.Sep 3 2021, 1:55 PM
MaskRay added a subscriber: MaskRay.Jan 3 2022, 6:25 PM

Without testing libclang_rt.profile{{.*}}.a in clang/test/Driver, such functionality may regress.
If I am to refactor addProfileRTLibs, I may not notice the untested feature.