Add an accessor.
authorChris Lattner <sabre@nondot.org>
Sun, 23 Jan 2005 22:57:27 +0000 (22:57 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 23 Jan 2005 22:57:27 +0000 (22:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19794 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineFunction.h

index 94e9470b76792c175a73f6fcfaa8d22cf1509055..01610c20aa0672068f30a6512ffb26a9e22ca947 100644 (file)
@@ -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.