-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[ObjCopy] Use llvm::reverse (NFC) #135559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ObjCopy] Use llvm::reverse (NFC) #135559
Conversation
|
@llvm/pr-subscribers-llvm-binary-utilities Author: Kazu Hirata (kazutakahirata) ChangesFull diff: https://github.com/llvm/llvm-project/pull/135559.diff 1 Files Affected:
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)
|
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/81/builds/6280 Here is the relevant piece of the build log for the reference |
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/10435 Here is the relevant piece of the build log for the reference |
No description provided.