summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/Analysis.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-10-03 12:48:50 +0000
committerClement Courbet <courbet@google.com>2018-10-03 12:48:50 +0000
commit5a768ddd449f51092f68625579b8b478a61be4c5 (patch)
tree1e7f875b02466f74f87a0fab5dee06576763a745 /llvm/tools/llvm-exegesis/lib/Analysis.cpp
parent8a5a6be47a3af480bf94e9881f16bb31b6c2ccef (diff)
downloadbcm5719-llvm-5a768ddd449f51092f68625579b8b478a61be4c5.tar.gz
bcm5719-llvm-5a768ddd449f51092f68625579b8b478a61be4c5.zip
[llvm-exegesis][NFC] Revert rL343682 "Fix unused variable warning".
That was not the proper fix: the variable is used in debug mode. llvm-svn: 343685
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Analysis.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/Analysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Analysis.cpp b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
index cb5d1984c31..eaacb5b1d65 100644
--- a/llvm/tools/llvm-exegesis/lib/Analysis.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
@@ -142,7 +142,7 @@ void Analysis::printInstructionRowCsv(const size_t PointId,
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
const llvm::MCSchedClassDesc *const SCDesc =
- SchedModel.getSchedClassDesc(SchedClassId);
+ SubtargetInfo_->getSchedModel().getSchedClassDesc(SchedClassId);
writeEscaped<kEscapeCsv>(OS, SCDesc->Name);
#else
OS << SchedClassId;
OpenPOWER on IntegriCloud