git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153795
91177308-0d34-0410-b5e6-
96231b3b80d8
CodeModel::Model CM,
CodeGenOpt::Level OL) {
MCCodeGenInfo *X = new MCCodeGenInfo();
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;
RM = Reloc::PIC_;
X->InitMCCodeGenInfo(RM, CM, OL);
return X;