diff options
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. |