diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-23 22:57:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-23 22:57:27 +0000 |
commit | 471f09090d78a4915c020e094a2ac81ce9bb34e0 (patch) | |
tree | 1c2354afdc8017fdec45ce85ba326c5c642a9586 /include/llvm/CodeGen/MachineFunction.h | |
parent | 786116337e1717e79c77339cfc13d3bf2b854ae6 (diff) |
Add an accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFunction.h')
-rw-r--r-- | include/llvm/CodeGen/MachineFunction.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 94e9470b76..01610c20aa 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. |