diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-02-15 02:55:51 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-02-15 02:55:51 +0000 |
commit | 3cd4c892d9d8162937b8db39750d55f32d7c6e85 (patch) | |
tree | 56ab4e67065e2ba352044659d3d786ababd5d6eb /include/llvm/CodeGen/MachineFunction.h | |
parent | d1172cc056372f0d9cc4f70201024dd7fbf46574 (diff) |
isPhysRegUsed should be const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34295 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFunction.h')
-rw-r--r-- | include/llvm/CodeGen/MachineFunction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 3b4de3fc30..0ba5970ac5 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -184,7 +184,7 @@ public: /// isPhysRegUsed - Return true if the specified register is used in this /// function. This only works after register allocation. - bool isPhysRegUsed(unsigned Reg) { return UsedPhysRegs[Reg]; } + bool isPhysRegUsed(unsigned Reg) const { return UsedPhysRegs[Reg]; } /// changePhyRegUsed - This method allows code that runs after register /// allocation to keep the PhysRegsUsed array up-to-date. |