[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineFunction.h

Chris Lattner lattner at cs.uiuc.edu
Sun Jan 23 14:57:42 PST 2005



Changes in directory llvm/include/llvm/CodeGen:

MachineFunction.h updated: 1.46 -> 1.47
---
Log message:

Add an accessor.


---
Diffs of the changes:  (+2 -1)

 MachineFunction.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/CodeGen/MachineFunction.h
diff -u llvm/include/llvm/CodeGen/MachineFunction.h:1.46 llvm/include/llvm/CodeGen/MachineFunction.h:1.47
--- llvm/include/llvm/CodeGen/MachineFunction.h:1.46	Sun Jan 23 16:13:36 2005
+++ llvm/include/llvm/CodeGen/MachineFunction.h	Sun Jan 23 16:57:27 2005
@@ -154,7 +154,8 @@
 
   /// 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.






More information about the llvm-commits mailing list