[LLVMdev] allocation_order_begin takes non-const reference for MachineFunction
Chris Lattner
sabre at nondot.org
Wed Aug 16 10:00:23 PDT 2006
On Wed, 16 Aug 2006, Anton Vayvod wrote:
> Thanks, Reid.
> I've found that some overrides of allocation_order_begin() calls
> MachineFunction getInfo method. this method is not const. However, I think
> there could be default const implementation (const_cast of non-const method)
> and then allocation_order_begin() could be const.
That sounds reasonable to me. There should probably also be a const
version of the getInfo method. If you'd be willing to put together a
patch, we can get it fixed.
Thanks,
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list