aboutsummaryrefslogtreecommitdiff
path: root/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
commitd0839f3071f687de505dba26a16c125b10f982ef (patch)
treea916b083672434c0aa1ae5ab108f00d3504fd851 /lib/Target/PowerPC/PPCTargetMachine.cpp
parent020d2e8e7aa36692af13c1215fdd6248a6d9e950 (diff)
PPC JIT relocation model should be DynamicNoPIC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26338 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r--lib/Target/PowerPC/PPCTargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp
index 9b5701b65e..ced492ccb9 100644
--- a/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/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());