mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
These methods should be "const"; make them so.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122809 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ba69d3f6d4
commit
c449a224bb
@ -824,11 +824,11 @@ public:
|
||||
|
||||
/// This is just a convenience that dispatches to the subclasses.
|
||||
/// @brief Determine if this CmpInst is commutative.
|
||||
bool isCommutative();
|
||||
bool isCommutative() const;
|
||||
|
||||
/// This is just a convenience that dispatches to the subclasses.
|
||||
/// @brief Determine if this is an equals/not equals predicate.
|
||||
bool isEquality();
|
||||
bool isEquality() const;
|
||||
|
||||
/// @returns true if the comparison is signed, false otherwise.
|
||||
/// @brief Determine if this instruction is using a signed comparison.
|
||||
|
@ -2736,14 +2736,14 @@ void CmpInst::swapOperands() {
|
||||
cast<FCmpInst>(this)->swapOperands();
|
||||
}
|
||||
|
||||
bool CmpInst::isCommutative() {
|
||||
if (ICmpInst *IC = dyn_cast<ICmpInst>(this))
|
||||
bool CmpInst::isCommutative() const {
|
||||
if (const ICmpInst *IC = dyn_cast<ICmpInst>(this))
|
||||
return IC->isCommutative();
|
||||
return cast<FCmpInst>(this)->isCommutative();
|
||||
}
|
||||
|
||||
bool CmpInst::isEquality() {
|
||||
if (ICmpInst *IC = dyn_cast<ICmpInst>(this))
|
||||
bool CmpInst::isEquality() const {
|
||||
if (const ICmpInst *IC = dyn_cast<ICmpInst>(this))
|
||||
return IC->isEquality();
|
||||
return cast<FCmpInst>(this)->isEquality();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user