diff options
author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2017-08-17 08:56:09 +0000 |
---|---|---|
committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2017-08-17 08:56:09 +0000 |
commit | d0d758f63fb3e9070ca299e13bf8334915f0a182 (patch) | |
tree | 6c3872edcb20e84a9619559d1000dbf6b09de6d1 /lib/Target/SystemZ | |
parent | 59bdb88371ec3d53427a52e86b3901c7ab1127ad (diff) |
[SystemZ] Add a wrapping with #ifndef NDEBUG to silence warning.
SystemZHazardRecognizer::TII is only used for debug output, so it needs
also to be wrapped with #ifndef NDEBUG.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ')
-rw-r--r-- | lib/Target/SystemZ/SystemZHazardRecognizer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZHazardRecognizer.h b/lib/Target/SystemZ/SystemZHazardRecognizer.h index 315845669f9..2105bab6afe 100644 --- a/lib/Target/SystemZ/SystemZHazardRecognizer.h +++ b/lib/Target/SystemZ/SystemZHazardRecognizer.h @@ -45,7 +45,9 @@ namespace llvm { /// SystemZHazardRecognizer maintains the state for one MBB during scheduling. class SystemZHazardRecognizer : public ScheduleHazardRecognizer { +#ifndef NDEBUG const SystemZInstrInfo *TII; +#endif const TargetSchedModel *SchedModel; /// Keep track of the number of decoder slots used in the current |