OSDN Git Service

[llvm-mca] Constify SourceMgr::hasNext. NFC.
authorMatt Davis <Matthew.Davis@sony.com>
Thu, 12 Jul 2018 23:19:30 +0000 (23:19 +0000)
committerMatt 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

index afde35f..15a85a6 100644 (file)
@@ -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 {