summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2017-08-17 08:56:09 +0000
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2017-08-17 08:56:09 +0000
commitd346924a0ea8af95bdc244c24e4a56c0e1d2728b (patch)
tree9218d430d693cdda25195da54eed9e1b934e7cfa /llvm/lib/Target/SystemZ
parent7e5b0a597877fa9eb32901c88dfb33eaf45d2bfe (diff)
downloadbcm5719-llvm-d346924a0ea8af95bdc244c24e4a56c0e1d2728b.tar.gz
bcm5719-llvm-d346924a0ea8af95bdc244c24e4a56c0e1d2728b.zip
[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. llvm-svn: 311074
Diffstat (limited to 'llvm/lib/Target/SystemZ')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZHazardRecognizer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.h b/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.h
index 315845669f9..2105bab6afe 100644
--- a/llvm/lib/Target/SystemZ/SystemZHazardRecognizer.h
+++ b/llvm/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
OpenPOWER on IntegriCloud