aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/Mips/MipsTargetMachine.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2009-12-21 08:15:29 +0000
committerEric Christopher <echristo@apple.com>2009-12-21 08:15:29 +0000
commit7669c97ba622ae8752f620bc1b47e385cb264b7a (patch)
tree98c618eee7accef11106c3d0a8cff15a5ad14265 /lib/Target/Mips/MipsTargetMachine.cpp
parent0427ac1ce35a4eb1c4e38b9c1b36e4f06116420e (diff)
downloadexternal_llvm-7669c97ba622ae8752f620bc1b47e385cb264b7a.zip
external_llvm-7669c97ba622ae8752f620bc1b47e385cb264b7a.tar.gz
external_llvm-7669c97ba622ae8752f620bc1b47e385cb264b7a.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/MipsTargetMachine.cpp')
-rw-r--r--lib/Target/Mips/MipsTargetMachine.cpp5
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::