From 53644648df99c73aa4f997a1f3d0a3a254cbe615 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 4 Sep 2006 18:48:41 +0000 Subject: [PATCH] Fix some X86 JIT failures. This should really come from TargetJITInfo. llvm-svn: 30102 --- lib/Target/X86/X86TargetMachine.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 83af172c7f0..ec449e42c49 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -106,6 +106,9 @@ bool X86TargetMachine::addObjectWriter(FunctionPassManager &PM, bool Fast, bool X86TargetMachine::addCodeEmitter(FunctionPassManager &PM, bool Fast, MachineCodeEmitter &MCE) { + // FIXME: Move this to TargetJITInfo! + setRelocationModel(Reloc::Static); + PM.add(createX86CodeEmitterPass(*this, MCE)); return false; }