summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-09 03:40:30 +0000
committerChris Lattner <sabre@nondot.org>2009-07-09 03:40:30 +0000
commit117608b129bded5b9cb0dc65051d014fbcaf8769 (patch)
tree7c2f224fdbf1f8ef3e304ae42df2f2d0309f3204 /llvm/lib/Target
parent0b0c5cc376a7b7312747da440f2341e6000e4d4b (diff)
downloadbcm5719-llvm-117608b129bded5b9cb0dc65051d014fbcaf8769.tar.gz
bcm5719-llvm-117608b129bded5b9cb0dc65051d014fbcaf8769.zip
.o file writing shouldn't mess around with pic/relo models like the JIT does.
llvm-svn: 75096
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/X86/X86TargetMachine.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp
index cdfc7ac2f55..9448f30878e 100644
--- a/llvm/lib/Target/X86/X86TargetMachine.cpp
+++ b/llvm/lib/Target/X86/X86TargetMachine.cpp
@@ -305,24 +305,6 @@ bool X86TargetMachine::addCodeEmitter(PassManagerBase &PM,
CodeGenOpt::Level OptLevel,
bool DumpAsm,
ObjectCodeEmitter &OCE) {
- // FIXME: Move this to TargetJITInfo!
- // On Darwin, do not override 64-bit setting made in X86TargetMachine().
- if (DefRelocModel == Reloc::Default &&
- (!Subtarget.isTargetDarwin() || !Subtarget.is64Bit())) {
- setRelocationModel(Reloc::Static);
- Subtarget.setPICStyle(PICStyles::None);
- }
-
- // 64-bit JIT places everything in the same buffer except external functions.
- // On Darwin, use small code model but hack the call instruction for
- // externals. Elsewhere, do not assume globals are in the lower 4G.
- if (Subtarget.is64Bit()) {
- if (Subtarget.isTargetDarwin())
- setCodeModel(CodeModel::Small);
- else
- setCodeModel(CodeModel::Large);
- }
-
PM.add(createX86ObjectCodeEmitterPass(*this, OCE));
if (DumpAsm) {
assert(AsmPrinterCtor && "AsmPrinter was not linked in");
OpenPOWER on IntegriCloud