[llvm] r261144 - Add static/const qualifiers to methods. NFC.
George Burgess IV via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 17 11:59:33 PST 2016
Author: gbiv
Date: Wed Feb 17 13:59:32 2016
New Revision: 261144
URL: http://llvm.org/viewvc/llvm-project?rev=261144&view=rev
Log:
Add static/const qualifiers to methods. NFC.
Split out this change as requested in D14933.
Modified:
llvm/trunk/include/llvm/Analysis/MemoryBuiltins.h
Modified: llvm/trunk/include/llvm/Analysis/MemoryBuiltins.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/MemoryBuiltins.h?rev=261144&r1=261143&r2=261144&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/MemoryBuiltins.h (original)
+++ llvm/trunk/include/llvm/Analysis/MemoryBuiltins.h Wed Feb 17 13:59:32 2016
@@ -159,15 +159,15 @@ public:
SizeOffsetType compute(Value *V);
- bool knownSize(SizeOffsetType &SizeOffset) {
+ static bool knownSize(const SizeOffsetType &SizeOffset) {
return SizeOffset.first.getBitWidth() > 1;
}
- bool knownOffset(SizeOffsetType &SizeOffset) {
+ static bool knownOffset(const SizeOffsetType &SizeOffset) {
return SizeOffset.second.getBitWidth() > 1;
}
- bool bothKnown(SizeOffsetType &SizeOffset) {
+ static bool bothKnown(const SizeOffsetType &SizeOffset) {
return knownSize(SizeOffset) && knownOffset(SizeOffset);
}
More information about the llvm-commits
mailing list