Displaying 3 results from an estimated 3 matches for "4109a977".
2006 Aug 16
2
[LLVMdev] allocation_order_begin takes non-const reference for MachineFunction
Hi!
Could someone tell me the reason why allocation_order_begin method of
TargetRegisterClass class takes a non-const reference to MachineFunction? I
can't imagine why this method will change function and didn't find any
override within llvm source which uses non-const methods of the MF
parameter.
Just run into compiler error because I passed a const reference to the
method.
Best
2006 Aug 16
0
[LLVMdev] allocation_order_begin takes non-const reference for MachineFunction
Hi Tony,
It doesn't look right to me either. The "begin" and "end" methods which
allocation_order_begin should return a const_iterator instead of an
iterator. Those methods are "const". And, yes, the MachineFunction
reference isn't even used so at the very least it could be const (if not
removed). However, I'm not an expert in this area of the code.
2006 Aug 16
2
[LLVMdev] allocation_order_begin takes non-const reference for MachineFunction
...ot const. However, I think
there could be default const implementation (const_cast of non-const method)
and then allocation_order_begin() could be const.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060816/4109a977/attachment.html>