mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Constify some methods. Patch provided by Anton Vayvod, thanks!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29756 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -165,6 +165,11 @@ public:
|
||||
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
|
||||
|
Reference in New Issue
Block a user