OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c43c4c
)
[llvm-mca] Constify SourceMgr::hasNext. NFC.
author
Matt Davis
<Matthew.Davis@sony.com>
Thu, 12 Jul 2018 23:19:30 +0000
(23:19 +0000)
committer
Matt Davis
<Matthew.Davis@sony.com>
Thu, 12 Jul 2018 23:19:30 +0000
(23:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336961
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/llvm-mca/SourceMgr.h
patch
|
blob
|
history
diff --git
a/tools/llvm-mca/SourceMgr.h
b/tools/llvm-mca/SourceMgr.h
index
afde35f
..
15a85a6
100644
(file)
--- 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 {