[llvm] 87322c9 - [ObjCopy] Use llvm::reverse (NFC) (#135559)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 13 14:16:29 PDT 2025
Author: Kazu Hirata
Date: 2025-04-13T14:16:26-07:00
New Revision: 87322c903976b4b24b96f460719181cbebde1547
URL: https://github.com/llvm/llvm-project/commit/87322c903976b4b24b96f460719181cbebde1547
DIFF: https://github.com/llvm/llvm-project/commit/87322c903976b4b24b96f460719181cbebde1547.diff
LOG: [ObjCopy] Use llvm::reverse (NFC) (#135559)
Added:
Modified:
llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp b/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
index 5a785d7afd1e4..b0ec215aec203 100644
--- a/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
+++ b/llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
@@ -857,8 +857,7 @@ static Error handleArgs(const CommonConfig &Config, const ELFConfig &ELFConfig,
"cannot change section address in a non-relocatable file");
StringMap<AddressUpdate> SectionsToUpdateAddress;
for (const SectionPatternAddressUpdate &PatternUpdate :
- make_range(Config.ChangeSectionAddress.rbegin(),
- Config.ChangeSectionAddress.rend())) {
+ reverse(Config.ChangeSectionAddress)) {
for (SectionBase &Sec : Obj.sections()) {
if (PatternUpdate.SectionPattern.matches(Sec.Name) &&
SectionsToUpdateAddress.try_emplace(Sec.Name, PatternUpdate.Update)
More information about the llvm-commits
mailing list