forked from OSchip/llvm-project
Add static/const qualifiers to methods. NFC.
Split out this change as requested in D14933. llvm-svn: 261144
This commit is contained in:
parent
cfbcf9097d
commit
7c278eb33f
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue