[llvm] 3af250f - Add some Function method definitions accidentally removed

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 18 08:29:11 PDT 2021


Author: Arthur Eubanks
Date: 2021-08-18T08:28:57-07:00
New Revision: 3af250ff1ed490a7c20919b7a594aecdccdc86e4

URL: https://github.com/llvm/llvm-project/commit/3af250ff1ed490a7c20919b7a594aecdccdc86e4
DIFF: https://github.com/llvm/llvm-project/commit/3af250ff1ed490a7c20919b7a594aecdccdc86e4.diff

LOG: Add some Function method definitions accidentally removed

In cc327bd5231126006b4177b8ce0946ce52e2f645.

Added: 
    

Modified: 
    llvm/lib/IR/Function.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp
index 9313c4980dfb..a49350fc95e3 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);
 }


        


More information about the llvm-commits mailing list