[PM] Sink the population of the pass manager with target-specific
authorChandler Carruth <chandlerc@gmail.com>
Fri, 30 Jan 2015 13:33:42 +0000 (13:33 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 30 Jan 2015 13:33:42 +0000 (13:33 +0000)
commitb4a44570f61681663b47486ffce749e9e8b6e46c
tree36daa697daa32ed2e198d8481641b4c4558d1cef
parent2ec788d43fb98a3426645503ce03c02b7bcc9c40
[PM] Sink the population of the pass manager with target-specific
analyses back into the LTO code generator.

The pass manager builder (and the transforms library in general)
shouldn't be referencing the target machine at all.

This makes the LTO population work like the others -- the data layout
and target transform info need to be pre-populated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227576 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/IPO/PassManagerBuilder.h
lib/LTO/LTOCodeGenerator.cpp
lib/Transforms/IPO/PassManagerBuilder.cpp