aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-23 22:57:27 +0000
committerChris Lattner <sabre@nondot.org>2005-01-23 22:57:27 +0000
commit471f09090d78a4915c020e094a2ac81ce9bb34e0 (patch)
tree1c2354afdc8017fdec45ce85ba326c5c642a9586 /include/llvm/CodeGen
parent786116337e1717e79c77339cfc13d3bf2b854ae6 (diff)
downloadexternal_llvm-471f09090d78a4915c020e094a2ac81ce9bb34e0.zip
external_llvm-471f09090d78a4915c020e094a2ac81ce9bb34e0.tar.gz
external_llvm-471f09090d78a4915c020e094a2ac81ce9bb34e0.tar.bz2
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')
-rw-r--r--include/llvm/CodeGen/MachineFunction.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h
index 94e9470..01610c2 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.