mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Mark hasConstantValue as a const method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22666 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c523f4c096
commit
9acbd611ec
@ -807,7 +807,7 @@ public:
|
||||
/// hasConstantValue - If the specified PHI node always merges together the
|
||||
/// same value, return the value, otherwise return null.
|
||||
///
|
||||
Value *hasConstantValue(bool AllowNonDominatingInstruction = false);
|
||||
Value *hasConstantValue(bool AllowNonDominatingInstruction = false) const;
|
||||
|
||||
/// Methods for support type inquiry through isa, cast, and dyn_cast:
|
||||
static inline bool classof(const PHINode *) { return true; }
|
||||
|
@ -135,7 +135,7 @@ void PHINode::resizeOperands(unsigned NumOps) {
|
||||
/// hasConstantValue - If the specified PHI node always merges together the same
|
||||
/// value, return the value, otherwise return null.
|
||||
///
|
||||
Value *PHINode::hasConstantValue(bool AllowNonDominatingInstruction) {
|
||||
Value *PHINode::hasConstantValue(bool AllowNonDominatingInstruction) const {
|
||||
// If the PHI node only has one incoming value, eliminate the PHI node...
|
||||
if (getNumIncomingValues() == 1)
|
||||
return getIncomingValue(0);
|
||||
|
Loading…
Reference in New Issue
Block a user