Skip to content

Commit 1ee4850

Browse files
committed
removeNote() -> removeNotes()
1 parent 08f7f23 commit 1ee4850

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,8 @@ RemoveNoteDetail::updateData(ArrayRef<uint8_t> OldData,
670670
return NewData;
671671
}
672672

673-
static Error removeNote(Object &Obj, endianness Endianness,
674-
ArrayRef<RemoveNoteInfo> NotesToRemove) {
673+
static Error removeNotes(Object &Obj, endianness Endianness,
674+
ArrayRef<RemoveNoteInfo> NotesToRemove) {
675675
for (auto &Sec : Obj.sections()) {
676676
// TODO: Support note sections in segments
677677
if (Sec.Type != SHT_NOTE || Sec.ParentSegment || !Sec.hasContents())
@@ -885,7 +885,7 @@ static Error handleArgs(const CommonConfig &Config, const ELFConfig &ELFConfig,
885885
: endianness::big;
886886

887887
if (!ELFConfig.NotesToRemove.empty()) {
888-
if (Error Err = removeNote(Obj, E, ELFConfig.NotesToRemove))
888+
if (Error Err = removeNotes(Obj, E, ELFConfig.NotesToRemove))
889889
return Err;
890890
}
891891

0 commit comments

Comments
 (0)