[PM] Teach the module-to-function adaptor to not run function passes
authorChandler Carruth <chandlerc@gmail.com>
Sun, 1 Feb 2015 10:47:25 +0000 (10:47 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 1 Feb 2015 10:47:25 +0000 (10:47 +0000)
commit795e721a721e2594136fa6682fa370631722da37
treeecbdf15b20419a88ccce76a293641432a099942c
parentb3f3d8975122cdd4222041439ac8771a912a6e38
[PM] Teach the module-to-function adaptor to not run function passes
over declarations.

This is both quite unproductive and causes things to crash, for example
domtree would just assert.

I've added a declaration and a domtree run to the basic high-level tests
for the new pass manager.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227724 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/PassManager.h
test/Other/new-pass-manager.ll