This is an archive of the discontinued LLVM Phabricator instance.

[ModuleUtils] NFC: Add unit tests for appendToUsedList
ClosedPublic

Authored by rksharma on May 3 2021, 1:03 AM.

Details

Summary

This patch adds initial unit tests for appendToUsedList in the ModuleUtils. It specifically tests changes from https://reviews.llvm.org/D101363 which intent to allow insertion of globals in non-zero address spaces into the llvm used lists.

Diff Detail

Event Timeline

rksharma created this revision.May 3 2021, 1:03 AM
rksharma requested review of this revision.May 3 2021, 1:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2021, 1:03 AM
rksharma updated this revision to Diff 342333.May 3 2021, 1:48 AM

clang-format changes

rksharma updated this revision to Diff 342348.May 3 2021, 3:51 AM

Again clang-format changes, the last clang-format patch failed silently.

Could you include some context in the patch description/commit message about this being intended to test https://reviews.llvm.org/D101363 ?
And can you confirm this test fails before D101363 and passes after it?

rksharma edited the summary of this revision. (Show Details)May 3 2021, 8:26 PM

I can confirm that the test case is working and fails before https://reviews.llvm.org/D101363

dblaikie accepted this revision.May 3 2021, 9:59 PM

Great, thanks!

This revision is now accepted and ready to land.May 3 2021, 9:59 PM