From: Chris Lattner Date: Sun, 23 Jan 2005 22:57:27 +0000 (+0000) Subject: Add an accessor. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=471f09090d78a4915c020e094a2ac81ce9bb34e0;p=oota-llvm.git Add an accessor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19794 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 94e9470b767..01610c20aa0 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -154,7 +154,8 @@ public: /// getUsedPhysregs - This returns the UsedPhysRegs array. This returns null /// before register allocation. - const bool *getUsedPhysregs() { return UsedPhysRegs; } + bool *getUsedPhysregs() { return UsedPhysRegs; } + const bool *getUsedPhysregs() const { return UsedPhysRegs; } /// isPhysRegUsed - Return true if the specified register is used in this /// function. This only works after register allocation.