isPhysRegUsed should be const.

llvm-svn: 34295
This commit is contained in:
Evan Cheng 2007-02-15 02:55:51 +00:00
parent 12ac070433
commit cba7633cb5
1 changed files with 1 additions and 1 deletions

View File

@ -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.