aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-mca
diff options
context:
space:
mode:
authorMatt Davis <Matthew.Davis@sony.com>2018-07-12 23:19:30 +0000
committerMatt Davis <Matthew.Davis@sony.com>2018-07-12 23:19:30 +0000
commitfda9d387d8ff911b12538646d277c3dc4c8197ca (patch)
tree2b76efc6f14d86ee6151a547436975b0e1a79f2c /tools/llvm-mca
parent5c43c4ce5f126cfea39bec1d7ce42612340cdf49 (diff)
[llvm-mca] Constify SourceMgr::hasNext. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-mca')
-rw-r--r--tools/llvm-mca/SourceMgr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-mca/SourceMgr.h b/tools/llvm-mca/SourceMgr.h
index afde35f7e00..15a85a69569 100644
--- a/tools/llvm-mca/SourceMgr.h
+++ b/tools/llvm-mca/SourceMgr.h
@@ -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 {