1
0
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:
Evan Cheng 2006-02-23 22:18:07 +00:00
parent cb9fb051a5
commit 2720cd1d7e

View File

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