aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineInstr.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-05-29 18:35:22 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-05-29 18:35:22 +0000
commitf277ee4be7edabb759a7f78138b693d72d0c263f (patch)
tree782c712ce4f0135703c6f7d42612ab6323902194 /include/llvm/CodeGen/MachineInstr.h
parent2fb813d70b8928f355b35f782889c55c1aa891ef (diff)
Add missing const qualifiers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index 52ae842da3..c20d231a5c 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -415,15 +415,16 @@ public:
/// findRegisterUseOperandIdx() - Returns the operand index that is a use of
/// the specific register or -1 if it is not found. It further tightening
/// the search criteria to a use that kills the register if isKill is true.
- int findRegisterUseOperandIdx(unsigned Reg, bool isKill = false);
+ int findRegisterUseOperandIdx(unsigned Reg, bool isKill = false) const;
/// findRegisterDefOperand() - Returns the MachineOperand that is a def of
/// the specific register or NULL if it is not found.
MachineOperand *findRegisterDefOperand(unsigned Reg);
- /// findFirstPredOperand() - Find the first operand in the operand list that
- // is used to represent the predicate.
- MachineOperand *findFirstPredOperand();
+ /// findFirstPredOperandIdx() - Find the index of the first operand in the
+ /// operand list that is used to represent the predicate. It returns -1 if
+ /// none is found.
+ int findFirstPredOperandIdx() const;
/// copyKillDeadInfo - Copies kill / dead operand properties from MI.
///