llvm.org GIT mirror llvm / 671944f
Fix the build of the gold-plugin and examples. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231279 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 4 years ago
7 changed file(s) with 7 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
19711971 // Set up the optimizer pipeline.
19721972 // Start with registering info about how the
19731973 // target lays out data structures.
1974 module->setDataLayout(executionEngine->getDataLayout());
1974 module->setDataLayout(*executionEngine->getDataLayout());
19751975
19761976 // Optimizations turned on
19771977 #ifdef ADD_OPT_PASSES
559559
560560 // Set up the optimizer pipeline. Start with registering info about how the
561561 // target lays out data structures.
562 OpenModule->setDataLayout(NewEngine->getDataLayout());
562 OpenModule->setDataLayout(*NewEngine->getDataLayout());
563563 // Provide basic AliasAnalysis support for GVN.
564564 FPM->add(createBasicAliasAnalysisPass());
565565 // Promote allocas to registers.
912912
913913 // Set up the optimizer pipeline. Start with registering info about how the
914914 // target lays out data structures.
915 TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
915 TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
916916 // Provide basic AliasAnalysis support for GVN.
917917 OurFPM.add(createBasicAliasAnalysisPass());
918918 // Do simple "peephole" optimizations and bit-twiddling optzns.
10331033
10341034 // Set up the optimizer pipeline. Start with registering info about how the
10351035 // target lays out data structures.
1036 TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
1036 TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
10371037 // Provide basic AliasAnalysis support for GVN.
10381038 OurFPM.add(createBasicAliasAnalysisPass());
10391039 // Do simple "peephole" optimizations and bit-twiddling optzns.
12071207
12081208 // Set up the optimizer pipeline. Start with registering info about how the
12091209 // target lays out data structures.
1210 TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
1210 TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
12111211 // Provide basic AliasAnalysis support for GVN.
12121212 OurFPM.add(createBasicAliasAnalysisPass());
12131213 // Promote allocas to registers.
14581458
14591459 // Set up the optimizer pipeline. Start with registering info about how the
14601460 // target lays out data structures.
1461 TheModule->setDataLayout(TheExecutionEngine->getDataLayout());
1461 TheModule->setDataLayout(*TheExecutionEngine->getDataLayout());
14621462 #if 0
14631463 // Provide basic AliasAnalysis support for GVN.
14641464 OurFPM.add(createBasicAliasAnalysisPass());
710710
711711 static void runLTOPasses(Module &M, TargetMachine &TM) {
712712 if (const DataLayout *DL = TM.getDataLayout())
713 M.setDataLayout(DL);
713 M.setDataLayout(*DL);
714714
715715 legacy::PassManager passes;
716 passes.add(new DataLayoutPass());
717716 passes.add(createTargetTransformInfoWrapperPass(TM.getTargetIRAnalysis()));
718717
719718 PassManagerBuilder PMB;
763762 saveBCFile(output_name + ".opt.bc", M);
764763
765764 legacy::PassManager CodeGenPasses;
766 CodeGenPasses.add(new DataLayoutPass());
767765
768766 SmallString<128> Filename;
769767 int FD;