Fix setting and default setting of code model for jit. Do this
authorEric Christopher <echristo@apple.com>
Mon, 21 Dec 2009 08:15:29 +0000 (08:15 +0000)
committerEric Christopher <echristo@apple.com>
Mon, 21 Dec 2009 08:15:29 +0000 (08:15 +0000)
commitf4f43cb5011611d44219ffb1caa988f5adf305bf
tree98c618eee7accef11106c3d0a8cff15a5ad14265
parent1f1b0f748daf08c4364a34f0af5de692d023c29f
Fix setting and default setting of code model for jit. Do this
by allowing backends to override routines that will default
the JIT and Static code generation to an appropriate code model
for the architecture.

Should fix PR 5773.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91824 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetMachine.h
lib/CodeGen/LLVMTargetMachine.cpp
lib/Target/Mips/MipsTargetMachine.cpp
lib/Target/X86/X86TargetMachine.cpp
lib/Target/X86/X86TargetMachine.h