mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
PPC JIT relocation model should be DynamicNoPIC.
llvm-svn: 26338
This commit is contained in:
parent
cb9fb051a5
commit
2720cd1d7e
@ -134,8 +134,8 @@ bool PPCTargetMachine::addPassesToEmitFile(PassManager &PM,
|
||||
}
|
||||
|
||||
void PPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
|
||||
// The JIT should use static relocation model.
|
||||
TM.setRelocationModel(Reloc::Static);
|
||||
// The JIT should use dynamic-no-pic relocation model.
|
||||
TM.setRelocationModel(Reloc::DynamicNoPIC);
|
||||
|
||||
// Run loop strength reduction before anything else.
|
||||
PM.add(createLoopStrengthReducePass());
|
||||
|
Loading…
Reference in New Issue
Block a user