summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:16:05 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:16:05 +0000
commit091872cb375b46d96cc3fc76aff56244cd5a680e (patch)
tree2ed8eee438a4a11b31eef75c0cc1a1f92b9408ad /llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
parent569a94c4d0b41567d35cb8d8aabb863b072788b4 (diff)
downloadbcm5719-llvm-091872cb375b46d96cc3fc76aff56244cd5a680e.tar.gz
bcm5719-llvm-091872cb375b46d96cc3fc76aff56244cd5a680e.zip
Implement 'large' PIC model
llvm-svn: 76006
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp b/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
index e8aa6b573b3..4be8ea99364 100644
--- a/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
@@ -42,6 +42,9 @@ SystemZTargetMachine::SystemZTargetMachine(const Module &M, const std::string &F
DataLayout("E-p:64:64:64-i8:8:16-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-a0:16:16"),
InstrInfo(*this), TLInfo(*this),
FrameInfo(TargetFrameInfo::StackGrowsDown, 8, -160) {
+
+ if (getRelocationModel() == Reloc::Default)
+ setRelocationModel(Reloc::Static);
}
bool SystemZTargetMachine::addInstSelector(PassManagerBase &PM,
OpenPOWER on IntegriCloud