Changes in directory llvm/include/llvm/CodeGen:
MachineFunction.h updated: 1.59 -> 1.60
---
Log message:
Constify some methods. Patch provided by Anton Vayvod, thanks!
---
Diffs of the changes: (+5 -0)
MachineFunction.h | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/include/llvm/CodeGen/MachineFunction.h
diff -u llvm/include/llvm/CodeGen/MachineFunction.h:1.59
llvm/include/llvm/CodeGen/MachineFunction.h:1.60
--- llvm/include/llvm/CodeGen/MachineFunction.h:1.59 Sat Apr 22 13:53:45 2006
+++ llvm/include/llvm/CodeGen/MachineFunction.h Thu Aug 17 17:00:07 2006
@@ -165,6 +165,11 @@
return static_cast<Ty*>(MFInfo);
}
+ template<typename Ty>
+ const Ty *getInfo() const {
+ return const_cast<MachineFunction*>(this)->getInfo<Ty>();
+ }
+
/// setUsedPhysRegs - The register allocator should call this to initialized
/// the UsedPhysRegs set. This should be passed a new[]'d array with entries
/// for all of the physical registers that the target supports. Each array
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits