[llvm] r343685 - [llvm-exegesis][NFC] Revert rL343682 "Fix unused variable warning".
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 3 05:48:50 PDT 2018
Author: courbet
Date: Wed Oct 3 05:48:50 2018
New Revision: 343685
URL: http://llvm.org/viewvc/llvm-project?rev=343685&view=rev
Log:
[llvm-exegesis][NFC] Revert rL343682 "Fix unused variable warning".
That was not the proper fix: the variable is used in debug mode.
Modified:
llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp
Modified: llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp?rev=343685&r1=343684&r2=343685&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp Wed Oct 3 05:48:50 2018
@@ -142,7 +142,7 @@ void Analysis::printInstructionRowCsv(co
#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;
More information about the llvm-commits
mailing list