diff options
author | Chris Lattner <sabre@nondot.org> | 2006-09-04 18:48:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-09-04 18:48:41 +0000 |
commit | 2130b99eb29796d80b978f7c4b4f64dcca0d1309 (patch) | |
tree | e93bf783002c4282ddedc23f1d42a39b57dd5346 /lib/Target/X86/X86TargetMachine.cpp | |
parent | 279015226e68820b5bdff358b3c045f893db4efc (diff) | |
download | external_llvm-2130b99eb29796d80b978f7c4b4f64dcca0d1309.zip external_llvm-2130b99eb29796d80b978f7c4b4f64dcca0d1309.tar.gz external_llvm-2130b99eb29796d80b978f7c4b4f64dcca0d1309.tar.bz2 |
Fix some X86 JIT failures. This should really come from TargetJITInfo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r-- | lib/Target/X86/X86TargetMachine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 83af172..ec449e4 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; } |