Skip to content

Commit 87322c9

Browse files
[ObjCopy] Use llvm::reverse (NFC) (#135559)
1 parent 543351b commit 87322c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,8 +857,7 @@ static Error handleArgs(const CommonConfig &Config, const ELFConfig &ELFConfig,
857857
"cannot change section address in a non-relocatable file");
858858
StringMap<AddressUpdate> SectionsToUpdateAddress;
859859
for (const SectionPatternAddressUpdate &PatternUpdate :
860-
make_range(Config.ChangeSectionAddress.rbegin(),
861-
Config.ChangeSectionAddress.rend())) {
860+
reverse(Config.ChangeSectionAddress)) {
862861
for (SectionBase &Sec : Obj.sections()) {
863862
if (PatternUpdate.SectionPattern.matches(Sec.Name) &&
864863
SectionsToUpdateAddress.try_emplace(Sec.Name, PatternUpdate.Update)

0 commit comments

Comments
 (0)