mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
[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
This commit is contained in:
@ -478,13 +478,7 @@ void PassManagerBuilder::addLTOOptimizationPasses(PassManagerBase &PM) {
|
||||
PM.add(createMergeFunctionsPass());
|
||||
}
|
||||
|
||||
void PassManagerBuilder::populateLTOPassManager(PassManagerBase &PM,
|
||||
TargetMachine *TM) {
|
||||
if (TM) {
|
||||
PM.add(new DataLayoutPass());
|
||||
TM->addAnalysisPasses(PM);
|
||||
}
|
||||
|
||||
void PassManagerBuilder::populateLTOPassManager(PassManagerBase &PM) {
|
||||
if (LibraryInfo)
|
||||
PM.add(new TargetLibraryInfoWrapperPass(*LibraryInfo));
|
||||
|
||||
|
Reference in New Issue
Block a user