aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/SystemZ
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-05-07 12:56:31 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2013-05-07 12:56:31 +0000
commit7a1ead46fb629839e5ce25574246ee743ab8b54f (patch)
treee80cea433a96e73eea6c3a50e511eecfce3a12b2 /lib/Target/SystemZ
parentd31ba134bb5772d277fa7228c516c433063530fa (diff)
downloadexternal_llvm-7a1ead46fb629839e5ce25574246ee743ab8b54f.zip
external_llvm-7a1ead46fb629839e5ce25574246ee743ab8b54f.tar.gz
external_llvm-7a1ead46fb629839e5ce25574246ee743ab8b54f.tar.bz2
[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/trunk@181312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ')
-rw-r--r--lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp b/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp
index 20eb98d..49a7f47 100644
--- a/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp
+++ b/lib/Target/SystemZ/MCTargetDesc/SystemZMCTargetDesc.cpp
@@ -57,7 +57,7 @@ static MCSubtargetInfo *createSystemZMCSubtargetInfo(StringRef TT,
static MCCodeGenInfo *createSystemZMCCodeGenInfo(StringRef TT, Reloc::Model RM,
CodeModel::Model CM,
- CodeGenOpt::Level) {
+ CodeGenOpt::Level OL) {
MCCodeGenInfo *X = new MCCodeGenInfo();
// 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;
else if (CM == CodeModel::JITDefault)
CM = RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium;
- X->InitMCCodeGenInfo(RM, CM);
+ X->InitMCCodeGenInfo(RM, CM, OL);
return X;
}