[llvm] r240317 - Remove "const" from the MachineFunction reference in VLIWPacketizerList
Krzysztof Parzyszek
kparzysz at codeaurora.org
Mon Jun 22 12:14:47 PDT 2015
Because the subclasses of VLIWPacketizerList can modify the machine
function. With this change they can use the MF member from the parent
class.
-Krzysztof
On 6/22/2015 2:13 PM, Eric Christopher wrote:
> ... why?
>
> -eric
>
> On Mon, Jun 22, 2015 at 12:06 PM Krzysztof Parzyszek
> <kparzysz at codeaurora.org <mailto:kparzysz at codeaurora.org>> wrote:
>
> Author: kparzysz
> Date: Mon Jun 22 13:59:44 2015
> New Revision: 240317
>
> URL: http://llvm.org/viewvc/llvm-project?rev=240317&view=rev
> Log:
> Remove "const" from the MachineFunction reference in VLIWPacketizerList
>
>
> Modified:
> llvm/trunk/include/llvm/CodeGen/DFAPacketizer.h
>
> Modified: llvm/trunk/include/llvm/CodeGen/DFAPacketizer.h
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/DFAPacketizer.h?rev=240317&r1=240316&r2=240317&view=diff
> ==============================================================================
> --- llvm/trunk/include/llvm/CodeGen/DFAPacketizer.h (original)
> +++ llvm/trunk/include/llvm/CodeGen/DFAPacketizer.h Mon Jun 22
> 13:59:44 2015
> @@ -91,7 +91,7 @@ public:
> // API call is made to prune the dependence.
> class VLIWPacketizerList {
> protected:
> - const MachineFunction &MF;
> + MachineFunction &MF;
> const TargetInstrInfo *TII;
>
> // The VLIW Scheduler.
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu <mailto:llvm-commits at cs.uiuc.edu>
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
More information about the llvm-commits
mailing list