diff options
author | Arthur Eubanks <aeubanks@google.com> | 2021-08-13 11:16:52 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2021-08-13 11:16:52 -0700 |
commit | 80ea2bb57450a65cc724565ecfc9971ad93a3f15 (patch) | |
tree | 2ae476e252e89c6e53ab484f0f9759afd710ab84 /llvm/lib/Transforms/Utils/CallPromotionUtils.cpp | |
parent | 92ce6db9ee7666a347fccf0f72ba3225b199d6d1 (diff) | |
download | llvm-80ea2bb57450a65cc724565ecfc9971ad93a3f15.zip llvm-80ea2bb57450a65cc724565ecfc9971ad93a3f15.tar.gz llvm-80ea2bb57450a65cc724565ecfc9971ad93a3f15.tar.bz2 |
[NFC] Rename AttributeList::getParam/Ret/FnAttributes() -> get*Attributes()
This is more consistent with similar methods.
Diffstat (limited to 'llvm/lib/Transforms/Utils/CallPromotionUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/CallPromotionUtils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp b/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp index 8786825..33cb882 100644 --- a/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp +++ b/llvm/lib/Transforms/Utils/CallPromotionUtils.cpp @@ -485,7 +485,7 @@ CallBase &llvm::promoteCall(CallBase &CB, Function *Callee, CB.setArgOperand(ArgNo, Cast); // Remove any incompatible attributes for the argument. - AttrBuilder ArgAttrs(CallerPAL.getParamAttributes(ArgNo)); + AttrBuilder ArgAttrs(CallerPAL.getParamAttrs(ArgNo)); ArgAttrs.remove(AttributeFuncs::typeIncompatible(FormalTy)); // If byval is used, this must be a pointer type, and the byval type must @@ -496,7 +496,7 @@ CallBase &llvm::promoteCall(CallBase &CB, Function *Callee, NewArgAttrs.push_back(AttributeSet::get(Ctx, ArgAttrs)); AttributeChanged = true; } else - NewArgAttrs.push_back(CallerPAL.getParamAttributes(ArgNo)); + NewArgAttrs.push_back(CallerPAL.getParamAttrs(ArgNo)); } // If the return type of the call site doesn't match that of the callee, cast @@ -511,7 +511,7 @@ CallBase &llvm::promoteCall(CallBase &CB, Function *Callee, // Set the new callsite attribute. if (AttributeChanged) - CB.setAttributes(AttributeList::get(Ctx, CallerPAL.getFnAttributes(), + CB.setAttributes(AttributeList::get(Ctx, CallerPAL.getFnAttrs(), AttributeSet::get(Ctx, RAttrs), NewArgAttrs)); |