diff options
author | Amaury Sechet <deadalnix@gmail.com> | 2016-06-14 20:27:35 +0000 |
---|---|---|
committer | Amaury Sechet <deadalnix@gmail.com> | 2016-06-14 20:27:35 +0000 |
commit | 392638d7b156511882f419b0ea7d6b7757b7093a (patch) | |
tree | 2c53b12207fd0339484b1b780e918cb6dd48b9f4 /llvm/lib/IR/Function.cpp | |
parent | d7e8206b58c0a5a6427fa75df734e71692eb31a4 (diff) | |
download | bcm5719-llvm-392638d7b156511882f419b0ea7d6b7757b7093a.tar.gz bcm5719-llvm-392638d7b156511882f419b0ea7d6b7757b7093a.zip |
Make sure attribute kind and attributes are named respectively Kind and Attr consistently. Historically they used to be the same the terminology is very confused in the codebase. NFC.
llvm-svn: 272704
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index d7eaf7190c4..b71e1baf1e9 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -366,9 +366,9 @@ void Function::dropAllReferences() { clearMetadata(); } -void Function::addAttribute(unsigned i, Attribute::AttrKind attr) { +void Function::addAttribute(unsigned i, Attribute::AttrKind Kind) { AttributeSet PAL = getAttributes(); - PAL = PAL.addAttribute(getContext(), i, attr); + PAL = PAL.addAttribute(getContext(), i, Kind); setAttributes(PAL); } @@ -378,21 +378,21 @@ void Function::addAttribute(unsigned i, Attribute Attr) { setAttributes(PAL); } -void Function::addAttributes(unsigned i, AttributeSet attrs) { +void Function::addAttributes(unsigned i, AttributeSet Attrs) { AttributeSet PAL = getAttributes(); - PAL = PAL.addAttributes(getContext(), i, attrs); + PAL = PAL.addAttributes(getContext(), i, Attrs); setAttributes(PAL); } -void Function::removeAttribute(unsigned i, Attribute::AttrKind attr) { +void Function::removeAttribute(unsigned i, Attribute::AttrKind Kind) { AttributeSet PAL = getAttributes(); - PAL = PAL.removeAttribute(getContext(), i, attr); + PAL = PAL.removeAttribute(getContext(), i, Kind); setAttributes(PAL); } -void Function::removeAttributes(unsigned i, AttributeSet attrs) { +void Function::removeAttributes(unsigned i, AttributeSet Attrs) { AttributeSet PAL = getAttributes(); - PAL = PAL.removeAttributes(getContext(), i, attrs); + PAL = PAL.removeAttributes(getContext(), i, Attrs); setAttributes(PAL); } |