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/CloneFunction.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/CloneFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/CloneFunction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp index 0ac9a5a..7ea799a 100644 --- a/llvm/lib/Transforms/Utils/CloneFunction.cpp +++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp @@ -116,13 +116,13 @@ void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc, for (const Argument &OldArg : OldFunc->args()) { if (Argument *NewArg = dyn_cast<Argument>(VMap[&OldArg])) { NewArgAttrs[NewArg->getArgNo()] = - OldAttrs.getParamAttributes(OldArg.getArgNo()); + OldAttrs.getParamAttrs(OldArg.getArgNo()); } } NewFunc->setAttributes( - AttributeList::get(NewFunc->getContext(), OldAttrs.getFnAttributes(), - OldAttrs.getRetAttributes(), NewArgAttrs)); + AttributeList::get(NewFunc->getContext(), OldAttrs.getFnAttrs(), + OldAttrs.getRetAttrs(), NewArgAttrs)); // Everything else beyond this point deals with function instructions, // so if we are dealing with a function declaration, we're done. |