[PM] Use a simpler technique to drop optional analysis manager arguments
authorChandler Carruth <chandlerc@gmail.com>
Wed, 27 May 2015 09:02:51 +0000 (09:02 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 27 May 2015 09:02:51 +0000 (09:02 +0000)
commit910146c989e6245db12fe2b3ff8f4b26ac4fa478
tree0c1f4284b16bc791de72448d396774ef22163a0a
parent3a9cbffdcb91ff34c96a4fb55b8e6413138fae30
[PM] Use a simpler technique to drop optional analysis manager arguments
when invoking run methods.

This technique was suggested by Dinesh Dwivedi who also wrote the
original patch. During the code review, they explained to me that this
isn't a fully general technique as we need to know the signatures of the
method candidates. Since this is really a narrower utility, I switched
the names and structure to be more clearly a specialized run method
invoke helper and commented it accordingly. I still think this is
a pretty big win.

Very sorry to Dinesh for the extreme delay in landing this patch. I've
been far to busy poking at other things.

Original review: http://reviews.llvm.org/D3543

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238305 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/PassManagerInternal.h