summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-02-23 22:18:07 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-02-23 22:18:07 +0000
commit0ed48fe601ef33ed63951c0429089076169eeb78 (patch)
tree87028d9abe2c048b04a7a489eac877ca6de954ba /llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
parente0ed6ec13fc8588d2d6bd130828674c9d6da9206 (diff)
downloadbcm5719-llvm-0ed48fe601ef33ed63951c0429089076169eeb78.tar.gz
bcm5719-llvm-0ed48fe601ef33ed63951c0429089076169eeb78.zip
PPC JIT relocation model should be DynamicNoPIC.
llvm-svn: 26338
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCTargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
index 9b5701b65e9..ced492ccb95 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -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());
OpenPOWER on IntegriCloud