mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-08 05:26:50 +00:00
[DAGCombiner] NFC. Mark ByteProvider accessors as const
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cc504e80b7
commit
a10aff5b13
@ -4374,8 +4374,8 @@ struct ByteProvider {
|
||||
}
|
||||
static ByteProvider getConstantZero() { return ByteProvider(nullptr, 0); }
|
||||
|
||||
bool isConstantZero() { return !Load; }
|
||||
bool isMemory() { return Load; }
|
||||
bool isConstantZero() const { return !Load; }
|
||||
bool isMemory() const { return Load; }
|
||||
|
||||
bool operator==(const ByteProvider &Other) const {
|
||||
return Other.Load == Load && Other.ByteOffset == ByteOffset;
|
||||
|
Loading…
x
Reference in New Issue
Block a user