diff options
author | Arthur Eubanks <aeubanks@google.com> | 2021-08-18 08:27:45 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2021-08-18 08:28:57 -0700 |
commit | 3af250ff1ed490a7c20919b7a594aecdccdc86e4 (patch) | |
tree | 2063f2334944ec9673338adcea4ad5060a5f7c9c /llvm/lib/IR/Function.cpp | |
parent | 58f93264878a3fb9db9d901c5d7dfdcde4291d6a (diff) | |
download | llvm-3af250ff1ed490a7c20919b7a594aecdccdc86e4.zip llvm-3af250ff1ed490a7c20919b7a594aecdccdc86e4.tar.gz llvm-3af250ff1ed490a7c20919b7a594aecdccdc86e4.tar.bz2 |
Add some Function method definitions accidentally removed
In cc327bd5231126006b4177b8ce0946ce52e2f645.
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index 9313c49..a49350f 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -533,6 +533,14 @@ void Function::addAttribute(unsigned i, Attribute Attr) { AttributeSets = AttributeSets.addAttribute(getContext(), i, Attr); } +void Function::addAttribute(unsigned i, Attribute::AttrKind Attr) { + AttributeSets = AttributeSets.addAttribute(getContext(), i, Attr); +} + +void Function::addAttributes(unsigned i, const AttrBuilder &Attrs) { + AttributeSets = AttributeSets.addAttributes(getContext(), i, Attrs); +} + void Function::addFnAttr(Attribute::AttrKind Kind) { AttributeSets = AttributeSets.addFnAttribute(getContext(), Kind); } |