This is an archive of the discontinued LLVM Phabricator instance.

[llvm-jitlink] Prevent dead-stripping of test callback
ClosedPublic

Authored by benlangmuir on Jan 18 2022, 2:29 PM.

Details

Summary

llvm_jitlink_setTestResultOverride is used via runtime lookup by tests, so make sure it is not dead-stripped from llvm-jitlink in release builds.

Fixes https://github.com/llvm/llvm-project/issues/5320

Diff Detail

Event Timeline

benlangmuir requested review of this revision.Jan 18 2022, 2:29 PM
benlangmuir created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 18 2022, 2:29 PM
lhames accepted this revision.Jan 18 2022, 3:04 PM

LGTM. Thanks Ben!

This revision is now accepted and ready to land.Jan 18 2022, 3:04 PM
This revision was landed with ongoing or failed builds.Jan 18 2022, 3:58 PM
This revision was automatically updated to reflect the committed changes.