[PM] (NFC) Refactor the CGSCC pass manager tests to use lambda-based
authorChandler Carruth <chandlerc@gmail.com>
Fri, 2 Sep 2016 01:08:04 +0000 (01:08 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 2 Sep 2016 01:08:04 +0000 (01:08 +0000)
commitd4e80a9615639942f62ac808cdb195105218f813
tree1ca7a4405e78ffeae1c20863bb3a3d7d27cc33d3
parent75e557f1fd9392a20989e57d31eaa1878f7ca9c1
[PM] (NFC) Refactor the CGSCC pass manager tests to use lambda-based
passes.

This simplifies the test some and makes it more focused and clear what
is being tested. It will also make it much easier to extend with further
testing of different pass behaviors.

I've also replaced a pointless module pass with running the requires
pass directly as that is all that it was really doing.

llvm-svn: 280444
llvm/unittests/Analysis/CGSCCPassManagerTest.cpp