mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Merge of r181312
[SystemZ] Fix InitMCCodeGenInfo call createSystemZMCCodeGenInfo was not passing the optimization level to InitMCCodeGenInfo(), so -O0 would be ignored. Fixes DebugInfo/namespace.ll after the changes in r181271. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_33@181419 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b3f0d9ddac
commit
93618a91c6
@ -57,7 +57,7 @@ static MCSubtargetInfo *createSystemZMCSubtargetInfo(StringRef TT,
|
|||||||
|
|
||||||
static MCCodeGenInfo *createSystemZMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
static MCCodeGenInfo *createSystemZMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
||||||
CodeModel::Model CM,
|
CodeModel::Model CM,
|
||||||
CodeGenOpt::Level) {
|
CodeGenOpt::Level OL) {
|
||||||
MCCodeGenInfo *X = new MCCodeGenInfo();
|
MCCodeGenInfo *X = new MCCodeGenInfo();
|
||||||
|
|
||||||
// Static code is suitable for use in a dynamic executable; there is no
|
// Static code is suitable for use in a dynamic executable; there is no
|
||||||
@ -98,7 +98,7 @@ static MCCodeGenInfo *createSystemZMCCodeGenInfo(StringRef TT, Reloc::Model RM,
|
|||||||
CM = CodeModel::Small;
|
CM = CodeModel::Small;
|
||||||
else if (CM == CodeModel::JITDefault)
|
else if (CM == CodeModel::JITDefault)
|
||||||
CM = RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium;
|
CM = RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium;
|
||||||
X->InitMCCodeGenInfo(RM, CM);
|
X->InitMCCodeGenInfo(RM, CM, OL);
|
||||||
return X;
|
return X;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user