mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Track upstream LLVM API change. DataLayout is not a Pass anymore
Swift SVN r14390
This commit is contained in:
@@ -327,7 +327,7 @@ void swift::RunImmediately(CompilerInstance &CI, const ProcessCmdLine &CmdLine,
|
||||
PMBuilder.OptLevel = 2;
|
||||
PMBuilder.Inliner = llvm::createFunctionInliningPass(200);
|
||||
llvm::PassManager ModulePasses;
|
||||
ModulePasses.add(new llvm::DataLayout(Module->getDataLayout()));
|
||||
ModulePasses.add(new llvm::DataLayoutPass(*Module->getDataLayout()));
|
||||
PMBuilder.populateModulePassManager(ModulePasses);
|
||||
ModulePasses.run(*Module);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user