OSDN Git Service

isPhysRegUsed should be const.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 15 Feb 2007 02:55:51 +0000 (02:55 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 15 Feb 2007 02:55:51 +0000 (02:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34295 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineFunction.h

index 3b4de3f..0ba5970 100644 (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.