[llvm] 0f45c16 - [NFC] Remove some unused functions

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 20 09:51:50 PDT 2021


Author: Arthur Eubanks
Date: 2021-08-20T09:46:30-07:00
New Revision: 0f45c16f2caa7c035e5c3edd40af9e0d51ad6ba7

URL: https://github.com/llvm/llvm-project/commit/0f45c16f2caa7c035e5c3edd40af9e0d51ad6ba7
DIFF: https://github.com/llvm/llvm-project/commit/0f45c16f2caa7c035e5c3edd40af9e0d51ad6ba7.diff

LOG: [NFC] Remove some unused functions

Added: 
    

Modified: 
    llvm/include/llvm/IR/Function.h
    llvm/lib/IR/Function.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/Function.h b/llvm/include/llvm/IR/Function.h
index bffc93b62984..f20b253a94cf 100644
--- a/llvm/include/llvm/IR/Function.h
+++ b/llvm/include/llvm/IR/Function.h
@@ -330,12 +330,6 @@ class Function : public GlobalObject, public ilist_node<Function> {
   /// adds the attribute to the list of attributes.
   void addAttribute(unsigned i, Attribute Attr);
 
-  /// adds the attribute to the list of attributes.
-  void addAttribute(unsigned i, Attribute::AttrKind Kind);
-
-  /// adds the attributes to the list of attributes.
-  void addAttributes(unsigned i, const AttrBuilder &Attrs);
-
   /// Add function attributes to this function.
   void addFnAttr(Attribute::AttrKind Kind);
 

diff  --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp
index a49350fc95e3..9313c4980dfb 100644
--- a/llvm/lib/IR/Function.cpp
+++ b/llvm/lib/IR/Function.cpp
@@ -533,14 +533,6 @@ 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