Fixup gold-plugin after r227576.

llvm-svn: 227599
This commit is contained in:
Alexey Samsonov 2015-01-30 19:14:04 +00:00
parent 21fbc94777
commit 5ce244889c
1 changed files with 2 additions and 2 deletions

View File

@ -696,7 +696,7 @@ getModuleForFile(LLVMContext &Context, claimed_file &F, raw_fd_ostream *ApiFile,
return Obj.takeModule();
}
static void runLTOPasses(Module &M, TargetMachine &TM) {
static void runLTOPasses(Module &M, const TargetMachine &TM) {
PassManager passes;
PassManagerBuilder PMB;
PMB.LibraryInfo = new TargetLibraryInfoImpl(Triple(TM.getTargetTriple()));
@ -705,7 +705,7 @@ static void runLTOPasses(Module &M, TargetMachine &TM) {
PMB.VerifyOutput = true;
PMB.LoopVectorize = true;
PMB.SLPVectorize = true;
PMB.populateLTOPassManager(passes, &TM);
PMB.populateLTOPassManager(passes);
passes.run(M);
}