[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)
commit9f8d9b613c14af8300a61f71dc4a412e6a52ade5
tree3caf6699cc0c06636fdfda2367a78844f6158945
parent9973aeede514345cdb8c03d0c0bb317b9bc740c6
[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.

llvm-svn: 227724
llvm/include/llvm/IR/PassManager.h
llvm/test/Other/new-pass-manager.ll