diff options
author | Dan Gohman <gohman@apple.com> | 2008-10-16 01:49:15 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-10-16 01:49:15 +0000 |
commit | 8e8b8a223c2b0e69f44c0639f846260c8011668f (patch) | |
tree | b39ffe640aebc9d306c008272b7ab43bcd743f59 /include/llvm/CodeGen/MachineBasicBlock.h | |
parent | fcab2bd2f3c849816fffff71342477788985b403 (diff) |
Const-ify several TargetInstrInfo methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57622 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineBasicBlock.h')
-rw-r--r-- | include/llvm/CodeGen/MachineBasicBlock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h index 09cca93e2f..46a82884ef 100644 --- a/include/llvm/CodeGen/MachineBasicBlock.h +++ b/include/llvm/CodeGen/MachineBasicBlock.h @@ -102,6 +102,8 @@ public: MachineInstr& front() { return Insts.front(); } MachineInstr& back() { return Insts.back(); } + const MachineInstr& front() const { return Insts.front(); } + const MachineInstr& back() const { return Insts.back(); } iterator begin() { return Insts.begin(); } const_iterator begin() const { return Insts.begin(); } |