Skip to content

Commit

Permalink
[NFC] Remove some unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
aeubanks committed Aug 20, 2021
1 parent 35d4292 commit 0f45c16
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
6 changes: 0 additions & 6 deletions llvm/include/llvm/IR/Function.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
8 changes: 0 additions & 8 deletions llvm/lib/IR/Function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0f45c16

Please sign in to comment.