diff options
author | Eric Christopher <echristo@apple.com> | 2009-12-21 08:15:29 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2009-12-21 08:15:29 +0000 |
commit | f4f43cb5011611d44219ffb1caa988f5adf305bf (patch) | |
tree | 98c618eee7accef11106c3d0a8cff15a5ad14265 /lib/Target/Mips | |
parent | 1f1b0f748daf08c4364a34f0af5de692d023c29f (diff) | |
download | external_llvm-f4f43cb5011611d44219ffb1caa988f5adf305bf.zip external_llvm-f4f43cb5011611d44219ffb1caa988f5adf305bf.tar.gz external_llvm-f4f43cb5011611d44219ffb1caa988f5adf305bf.tar.bz2 |
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
Diffstat (limited to 'lib/Target/Mips')
-rw-r--r-- | lib/Target/Mips/MipsTargetMachine.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Target/Mips/MipsTargetMachine.cpp b/lib/Target/Mips/MipsTargetMachine.cpp index b3c2313..4724ff7 100644 --- a/lib/Target/Mips/MipsTargetMachine.cpp +++ b/lib/Target/Mips/MipsTargetMachine.cpp @@ -50,11 +50,6 @@ MipsTargetMachine(const Target &T, const std::string &TT, const std::string &FS, else setRelocationModel(Reloc::Static); } - - // TODO: create an option to enable long calls, like -mlong-calls, - // that would be our CodeModel::Large. It must not work with Abicall. - if (getCodeModel() == CodeModel::Default) - setCodeModel(CodeModel::Small); } MipselTargetMachine:: |