mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-02 17:09:05 +00:00
Select static relocation model if it is jitting.
llvm-svn: 153795
This commit is contained in:
parent
f1fa07f326
commit
4ef4aae332
@ -67,7 +67,9 @@ static MCCodeGenInfo *createMipsMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||
CodeModel::Model CM,
|
||||
CodeGenOpt::Level OL) {
|
||||
MCCodeGenInfo *X = new MCCodeGenInfo();
|
||||
if (RM == Reloc::Default)
|
||||
if (CM == CodeModel::JITDefault)
|
||||
RM = Reloc::Static;
|
||||
else if (RM == Reloc::Default)
|
||||
RM = Reloc::PIC_;
|
||||
X->InitMCCodeGenInfo(RM, CM, OL);
|
||||
return X;
|
||||
|
Loading…
Reference in New Issue
Block a user