summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/Analysis.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-05-16 09:10:04 +0000
committerClement Courbet <courbet@google.com>2018-05-16 09:10:04 +0000
commit4022b6c42f3d22a1973e6d461b82060be26245d2 (patch)
tree6c735516a935ee076bb3b28f72fd053defd032f3 /llvm/tools/llvm-exegesis/lib/Analysis.cpp
parent1bffd0f7414623ca4ed8ae4768b827f29fa173ad (diff)
downloadbcm5719-llvm-4022b6c42f3d22a1973e6d461b82060be26245d2.tar.gz
bcm5719-llvm-4022b6c42f3d22a1973e6d461b82060be26245d2.zip
Fix unused variable warning in r332437.
llvm-svn: 332441
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Analysis.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/Analysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Analysis.cpp b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
index 97fdf4eff1f..da1e4688f61 100644
--- a/llvm/tools/llvm-exegesis/lib/Analysis.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
@@ -47,9 +47,9 @@ void Analysis::printInstructionRow(const size_t ClusterId, const size_t PointId,
if (OpcodeIt != MnemonicToOpcode_.end()) {
const auto &SchedModel = SubtargetInfo_->getSchedModel();
const unsigned SchedClassId = InstrInfo_->get(OpcodeIt->second).getSchedClass();
- const llvm::MCSchedClassDesc *const SCDesc =
- SchedModel.getSchedClassDesc(SchedClassId);
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+ const llvm::MCSchedClassDesc *const SCDesc =
+ SchedModel.getSchedClassDesc(SchedClassId);
writeCsvEscaped(OS, SCDesc->Name);
#else
OS << SchedClassId;
OpenPOWER on IntegriCloud