From 3cd4c892d9d8162937b8db39750d55f32d7c6e85 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 15 Feb 2007 02:55:51 +0000 Subject: [PATCH] isPhysRegUsed should be const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34295 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineFunction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 3b4de3fc302..0ba5970ac5b 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.