diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-05-29 18:35:22 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-05-29 18:35:22 +0000 |
commit | f277ee4be7edabb759a7f78138b693d72d0c263f (patch) | |
tree | 782c712ce4f0135703c6f7d42612ab6323902194 /include/llvm/Target | |
parent | 2fb813d70b8928f355b35f782889c55c1aa891ef (diff) | |
download | external_llvm-f277ee4be7edabb759a7f78138b693d72d0c263f.zip external_llvm-f277ee4be7edabb759a7f78138b693d72d0c263f.tar.gz external_llvm-f277ee4be7edabb759a7f78138b693d72d0c263f.tar.bz2 |
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/Target')
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index bb1dfd2..5fe9130 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -395,19 +395,21 @@ public: /// isPredicable - Returns true if the instruction is already predicated. /// - virtual bool isPredicated(MachineInstr *MI) const { + virtual bool isPredicated(const MachineInstr *MI) const { return false; } /// PredicateInstruction - Convert the instruction into a predicated /// instruction. It returns true if the operation was successful. - virtual bool PredicateInstruction(MachineInstr *MI, - std::vector<MachineOperand> &Pred) const; + virtual + bool PredicateInstruction(MachineInstr *MI, + const std::vector<MachineOperand> &Pred) const; /// SubsumesPredicate - Returns true if the first specified predicated /// subsumes the second, e.g. GE subsumes GT. - virtual bool SubsumesPredicate(std::vector<MachineOperand> &Pred1, - std::vector<MachineOperand> &Pred2) const { + virtual + bool SubsumesPredicate(const std::vector<MachineOperand> &Pred1, + const std::vector<MachineOperand> &Pred2) const { return false; } |