[llvm] r222905 - Stop using ArrayRef of a const type.

Tim Northover tnorthover at apple.com
Thu Nov 27 13:29:20 PST 2014


Author: tnorthover
Date: Thu Nov 27 15:29:20 2014
New Revision: 222905

URL: http://llvm.org/viewvc/llvm-project?rev=222905&view=rev
Log:
Stop using ArrayRef of a const type.

I *think* this is what the GCC bots are complaining about.

Modified:
    llvm/trunk/include/llvm/CodeGen/CallingConvLower.h
    llvm/trunk/lib/Target/AArch64/AArch64CallingConvention.h
    llvm/trunk/lib/Target/ARM/ARMCallingConv.h

Modified: llvm/trunk/include/llvm/CodeGen/CallingConvLower.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/CallingConvLower.h?rev=222905&r1=222904&r2=222905&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/CallingConvLower.h (original)
+++ llvm/trunk/include/llvm/CodeGen/CallingConvLower.h Thu Nov 27 15:29:20 2014
@@ -345,8 +345,7 @@ public:
   /// AllocateRegBlock - Attempt to allocate a block of RegsRequired consecutive
   /// registers. If this is not possible, return zero. Otherwise, return the first
   /// register of the block that were allocated, marking the entire block as allocated.
-  unsigned AllocateRegBlock(ArrayRef<const uint16_t> Regs,
-                            unsigned RegsRequired) {
+  unsigned AllocateRegBlock(ArrayRef<uint16_t> Regs, unsigned RegsRequired) {
     if (RegsRequired > Regs.size())
       return 0;
 

Modified: llvm/trunk/lib/Target/AArch64/AArch64CallingConvention.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64CallingConvention.h?rev=222905&r1=222904&r2=222905&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64CallingConvention.h (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64CallingConvention.h Thu Nov 27 15:29:20 2014
@@ -85,7 +85,7 @@ static bool CC_AArch64_Custom_Block(unsi
                                     ISD::ArgFlagsTy &ArgFlags, CCState &State) {
   // Try to allocate a contiguous block of registers, each of the correct
   // size to hold one member.
-  ArrayRef<const uint16_t> RegList;
+  ArrayRef<uint16_t> RegList;
   if (LocVT.SimpleTy == MVT::i64)
     RegList = XRegList;
   else if (LocVT.SimpleTy == MVT::f32)

Modified: llvm/trunk/lib/Target/ARM/ARMCallingConv.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMCallingConv.h?rev=222905&r1=222904&r2=222905&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMCallingConv.h (original)
+++ llvm/trunk/lib/Target/ARM/ARMCallingConv.h Thu Nov 27 15:29:20 2014
@@ -194,7 +194,7 @@ static bool CC_ARM_AAPCS_Custom_HA(unsig
 
     // Try to allocate a contiguous block of registers, each of the correct
     // size to hold one member.
-    ArrayRef<const uint16_t> RegList;
+    ArrayRef<uint16_t> RegList;
     switch (LocVT.SimpleTy) {
     case MVT::f32:
       RegList = SRegList;





More information about the llvm-commits mailing list