diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2009-04-29 20:57:16 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2009-04-29 20:57:16 +0000 |
commit | cb9f5b5de94fbc70e20943731bceb29095025722 (patch) | |
tree | 0e76e101d48c44e9a4cc5a6c017a37d229f6af51 /include | |
parent | c9119223c35edab7e4550d866d39f76803008f9f (diff) | |
download | external_llvm-cb9f5b5de94fbc70e20943731bceb29095025722.zip external_llvm-cb9f5b5de94fbc70e20943731bceb29095025722.tar.gz external_llvm-cb9f5b5de94fbc70e20943731bceb29095025722.tar.bz2 |
MachineInstr::isRegTiedTo{Use,Def}Operand can safely be made const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70408 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 3caf7ac..d61e5d8 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -245,12 +245,12 @@ public: /// check if the register def is tied to a source operand, due to either /// two-address elimination or inline assembly constraints. Returns the /// first tied use operand index by reference is UseOpIdx is not null. - bool isRegTiedToUseOperand(unsigned DefOpIdx, unsigned *UseOpIdx = 0); + bool isRegTiedToUseOperand(unsigned DefOpIdx, unsigned *UseOpIdx = 0) const; /// isRegTiedToDefOperand - Return true if the use operand of the specified /// index is tied to an def operand. It also returns the def operand index by /// reference if DefOpIdx is not null. - bool isRegTiedToDefOperand(unsigned UseOpIdx, unsigned *DefOpIdx = 0); + bool isRegTiedToDefOperand(unsigned UseOpIdx, unsigned *DefOpIdx = 0) const; /// copyKillDeadInfo - Copies kill / dead operand properties from MI. /// |