mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Fixup gold-plugin after r227576.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227599 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
587083e6a4
commit
9b8adaf3b2
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user