[PM] Fix the analysis templates' usage of IRUnitT.
authorChandler Carruth <chandlerc@gmail.com>
Fri, 22 Nov 2013 11:34:43 +0000 (11:34 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 22 Nov 2013 11:34:43 +0000 (11:34 +0000)
commit3f081983cc79cdb16a83ac01e2ea04697bd8b892
treeea3ae3985133b4815b822b527c24b7cc95c38477
parent8dc7f94f4db4cdf2cb6566490908440a58dac19a
[PM] Fix the analysis templates' usage of IRUnitT.

This is supposed to be the whole type of the IR unit, and so we
shouldn't pass a pointer to it but rather the value itself. In turn, we
need to provide a 'Module *' as that type argument (for example). This
will become more relevant with SCCs or other units which may not be
passed as a pointer type, but also brings consistency with the
transformation pass templates.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195445 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/PassManager.h
lib/IR/PassManager.cpp
unittests/IR/PassManagerTest.cpp