diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-02-22 05:59:10 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-02-22 05:59:10 +0000 |
commit | 44d23825d61d530b8d562329ec8fc2d4f843bb8d (patch) | |
tree | db60d92a0a5df6a6a1c3d1a247a1fae22bc14796 /lib/Target/MBlaze | |
parent | b84d540bc9d70de00b791d0e0deab410d6ba3ad5 (diff) | |
download | external_llvm-44d23825d61d530b8d562329ec8fc2d4f843bb8d.zip external_llvm-44d23825d61d530b8d562329ec8fc2d4f843bb8d.tar.gz external_llvm-44d23825d61d530b8d562329ec8fc2d4f843bb8d.tar.bz2 |
Make all pointers to TargetRegisterClass const since they are all pointers to static data that should not be modified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151134 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MBlaze')
-rw-r--r-- | lib/Target/MBlaze/MBlazeISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/MBlaze/MBlazeISelLowering.cpp b/lib/Target/MBlaze/MBlazeISelLowering.cpp index 9d2805c..4b5e82d 100644 --- a/lib/Target/MBlaze/MBlazeISelLowering.cpp +++ b/lib/Target/MBlaze/MBlazeISelLowering.cpp @@ -896,7 +896,7 @@ LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv, bool isVarArg, if (VA.isRegLoc()) { MVT RegVT = VA.getLocVT(); ArgRegEnd = VA.getLocReg(); - TargetRegisterClass *RC = 0; + const TargetRegisterClass *RC; if (RegVT == MVT::i32) RC = MBlaze::GPRRegisterClass; @@ -964,7 +964,7 @@ LowerFormalArguments(SDValue Chain, CallingConv::ID CallConv, bool isVarArg, StackPtr = DAG.getRegister(StackReg, getPointerTy()); // The last register argument that must be saved is MBlaze::R10 - TargetRegisterClass *RC = MBlaze::GPRRegisterClass; + const TargetRegisterClass *RC = MBlaze::GPRRegisterClass; unsigned Begin = getMBlazeRegisterNumbering(MBlaze::R5); unsigned Start = getMBlazeRegisterNumbering(ArgRegEnd+1); |