Skip to content

Commit 0f45c16

Browse files
committed
[NFC] Remove some unused functions
1 parent 35d4292 commit 0f45c16

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

llvm/include/llvm/IR/Function.h

-6
Original file line numberDiff line numberDiff line change
@@ -330,12 +330,6 @@ class Function : public GlobalObject, public ilist_node<Function> {
330330
/// adds the attribute to the list of attributes.
331331
void addAttribute(unsigned i, Attribute Attr);
332332

333-
/// adds the attribute to the list of attributes.
334-
void addAttribute(unsigned i, Attribute::AttrKind Kind);
335-
336-
/// adds the attributes to the list of attributes.
337-
void addAttributes(unsigned i, const AttrBuilder &Attrs);
338-
339333
/// Add function attributes to this function.
340334
void addFnAttr(Attribute::AttrKind Kind);
341335

llvm/lib/IR/Function.cpp

-8
Original file line numberDiff line numberDiff line change
@@ -533,14 +533,6 @@ void Function::addAttribute(unsigned i, Attribute Attr) {
533533
AttributeSets = AttributeSets.addAttribute(getContext(), i, Attr);
534534
}
535535

536-
void Function::addAttribute(unsigned i, Attribute::AttrKind Attr) {
537-
AttributeSets = AttributeSets.addAttribute(getContext(), i, Attr);
538-
}
539-
540-
void Function::addAttributes(unsigned i, const AttrBuilder &Attrs) {
541-
AttributeSets = AttributeSets.addAttributes(getContext(), i, Attrs);
542-
}
543-
544536
void Function::addFnAttr(Attribute::AttrKind Kind) {
545537
AttributeSets = AttributeSets.addFnAttribute(getContext(), Kind);
546538
}

0 commit comments

Comments
 (0)