[ModuleUtils] NFC: Add unit tests for appendToUsedList
authorReshabh Sharma <Reshabhkumar.Sharma@amd.com>
Tue, 4 May 2021 06:35:50 +0000 (12:05 +0530)
committerReshabh Sharma <Reshabhkumar.Sharma@amd.com>
Tue, 4 May 2021 06:35:50 +0000 (12:05 +0530)
commited51156084dd84aa10d78eac14a66b36663069bc
tree95a8389614a042e429c92939be30d2d42b9f05f6
parent27b426b0c8ab388fa7729c0ca2fe1d97141bcb72
[ModuleUtils] NFC: Add unit tests for appendToUsedList

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.

Reviewed by: dblaikie

Differential Revision: https://reviews.llvm.org/D101746
llvm/unittests/Transforms/Utils/CMakeLists.txt
llvm/unittests/Transforms/Utils/ModuleUtilsTest.cpp [new file with mode: 0644]