isPhysRegUsed should be const.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34295 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2007-02-15 02:55:51 +00:00
parent d1172cc056
commit 3cd4c892d9

View File

@ -184,7 +184,7 @@ public:
/// isPhysRegUsed - Return true if the specified register is used in this /// isPhysRegUsed - Return true if the specified register is used in this
/// function. This only works after register allocation. /// 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 /// changePhyRegUsed - This method allows code that runs after register
/// allocation to keep the PhysRegsUsed array up-to-date. /// allocation to keep the PhysRegsUsed array up-to-date.