[llvm] r336961 - [llvm-mca] Constify SourceMgr::hasNext. NFC.
Matt Davis via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 12 16:19:30 PDT 2018
Author: mattd
Date: Thu Jul 12 16:19:30 2018
New Revision: 336961
URL: http://llvm.org/viewvc/llvm-project?rev=336961&view=rev
Log:
[llvm-mca] Constify SourceMgr::hasNext. NFC.
Modified:
llvm/trunk/tools/llvm-mca/SourceMgr.h
Modified: llvm/trunk/tools/llvm-mca/SourceMgr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mca/SourceMgr.h?rev=336961&r1=336960&r2=336961&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-mca/SourceMgr.h (original)
+++ llvm/trunk/tools/llvm-mca/SourceMgr.h Thu Jul 12 16:19:30 2018
@@ -40,7 +40,7 @@ public:
unsigned size() const { return Sequence.size(); }
const InstVec &getSequence() const { return Sequence; }
- bool hasNext() { return Current < (Iterations * size()); }
+ bool hasNext() const { return Current < (Iterations * size()); }
void updateNext() { Current++; }
const SourceRef peekNext() const {
More information about the llvm-commits
mailing list