Track upstream LLVM API change. DataLayout is not a Pass anymore

Swift SVN r14390
This commit is contained in:
Dmitri Hrybenko
2014-02-26 10:03:45 +00:00
parent 230c8a4982
commit 3d0e7ec09d
2 changed files with 3 additions and 3 deletions

View File

@@ -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);