mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-02 15:45:44 +00:00
Fix the ppc jit tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309921 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
98bb5a4f2a
commit
a3b3711292
@ -209,10 +209,11 @@ static Reloc::Model getEffectiveRelocModel(const Triple &TT,
|
||||
}
|
||||
|
||||
static CodeModel::Model getEffectiveCodeModel(const Triple &TT,
|
||||
Optional<CodeModel::Model> CM) {
|
||||
Optional<CodeModel::Model> CM,
|
||||
bool JIT) {
|
||||
if (CM)
|
||||
return *CM;
|
||||
if (!TT.isOSDarwin() &&
|
||||
if (!TT.isOSDarwin() && !JIT &&
|
||||
(TT.getArch() == Triple::ppc64 || TT.getArch() == Triple::ppc64le))
|
||||
return CodeModel::Medium;
|
||||
return CodeModel::Small;
|
||||
@ -231,7 +232,7 @@ PPCTargetMachine::PPCTargetMachine(const Target &T, const Triple &TT,
|
||||
: LLVMTargetMachine(T, getDataLayoutString(TT), TT, CPU,
|
||||
computeFSAdditions(FS, OL, TT), Options,
|
||||
getEffectiveRelocModel(TT, RM),
|
||||
getEffectiveCodeModel(TT, CM), OL),
|
||||
getEffectiveCodeModel(TT, CM, JIT), OL),
|
||||
TLOF(createTLOF(getTargetTriple())),
|
||||
TargetABI(computeTargetABI(TT, Options)) {
|
||||
initAsmInfo();
|
||||
|
Loading…
x
Reference in New Issue
Block a user