From 5ce244889cec66318c9b1ebdbf2339019faa9def Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Fri, 30 Jan 2015 19:14:04 +0000 Subject: [PATCH] Fixup gold-plugin after r227576. llvm-svn: 227599 --- llvm/tools/gold/gold-plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index b80ad42..b57bed7 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -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); } -- 2.7.4