[llvm] 16b0d2f - [NFC] mark DebugCounter::Chunk method as const (#143039)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 5 16:54:37 PDT 2025


Author: Florian Mayer
Date: 2025-06-05T16:54:34-07:00
New Revision: 16b0d2f91097df95efea23e353ebead08e1ec727

URL: https://github.com/llvm/llvm-project/commit/16b0d2f91097df95efea23e353ebead08e1ec727
DIFF: https://github.com/llvm/llvm-project/commit/16b0d2f91097df95efea23e353ebead08e1ec727.diff

LOG: [NFC] mark DebugCounter::Chunk method as const (#143039)

Added: 
    

Modified: 
    llvm/include/llvm/Support/DebugCounter.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/DebugCounter.h b/llvm/include/llvm/Support/DebugCounter.h
index 9611586a92c3b..89349d1ebffee 100644
--- a/llvm/include/llvm/Support/DebugCounter.h
+++ b/llvm/include/llvm/Support/DebugCounter.h
@@ -60,7 +60,7 @@ class DebugCounter {
     int64_t Begin;
     int64_t End;
     LLVM_ABI void print(llvm::raw_ostream &OS);
-    bool contains(int64_t Idx) { return Idx >= Begin && Idx <= End; }
+    bool contains(int64_t Idx) const { return Idx >= Begin && Idx <= End; }
   };
 
   LLVM_ABI static void printChunks(raw_ostream &OS, ArrayRef<Chunk>);


        


More information about the llvm-commits mailing list