mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-30 04:56:49 +00:00
Select static relocation model if it is jitting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153795 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dd9a50196c
commit
b2874df81d
@ -67,7 +67,9 @@ static MCCodeGenInfo *createMipsMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
|||||||
CodeModel::Model CM,
|
CodeModel::Model CM,
|
||||||
CodeGenOpt::Level OL) {
|
CodeGenOpt::Level OL) {
|
||||||
MCCodeGenInfo *X = new MCCodeGenInfo();
|
MCCodeGenInfo *X = new MCCodeGenInfo();
|
||||||
if (RM == Reloc::Default)
|
if (CM == CodeModel::JITDefault)
|
||||||
|
RM = Reloc::Static;
|
||||||
|
else if (RM == Reloc::Default)
|
||||||
RM = Reloc::PIC_;
|
RM = Reloc::PIC_;
|
||||||
X->InitMCCodeGenInfo(RM, CM, OL);
|
X->InitMCCodeGenInfo(RM, CM, OL);
|
||||||
return X;
|
return X;
|
||||||
|
Loading…
Reference in New Issue
Block a user