[NFC][inline] Add const to an argument
authorVitaly Buka <vitalybuka@google.com>
Tue, 2 Aug 2022 02:24:52 +0000 (19:24 -0700)
committerVitaly Buka <vitalybuka@google.com>
Wed, 3 Aug 2022 20:20:47 +0000 (13:20 -0700)
llvm/include/llvm/Analysis/InlineCost.h
llvm/lib/Analysis/InlineCost.cpp

index 756f1fb..eeeb136 100644 (file)
@@ -244,7 +244,7 @@ InlineParams getInlineParams(unsigned OptLevel, unsigned SizeOptLevel);
 
 /// Return the cost associated with a callsite, including parameter passing
 /// and the call/return instruction.
-int getCallsiteCost(CallBase &Call, const DataLayout &DL);
+int getCallsiteCost(const CallBase &Call, const DataLayout &DL);
 
 /// Get an InlineCost object representing the cost of inlining this
 /// callsite.
index 8192ed5..d0a33dd 100644 (file)
@@ -2745,7 +2745,7 @@ static bool functionsHaveCompatibleAttributes(
          AttributeFuncs::areInlineCompatible(*Caller, *Callee);
 }
 
-int llvm::getCallsiteCost(CallBase &Call, const DataLayout &DL) {
+int llvm::getCallsiteCost(const CallBase &Call, const DataLayout &DL) {
   int Cost = 0;
   for (unsigned I = 0, E = Call.arg_size(); I != E; ++I) {
     if (Call.isByValArgument(I)) {