projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3054ece
)
Simplify. NFC.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Wed, 28 Feb 2018 18:05:37 +0000
(18:05 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Wed, 28 Feb 2018 18:05:37 +0000
(18:05 +0000)
llvm-svn: 326344
lld/ELF/LinkerScript.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/LinkerScript.cpp
b/lld/ELF/LinkerScript.cpp
index
80053f5
..
e82ee3c
100644
(file)
--- a/
lld/ELF/LinkerScript.cpp
+++ b/
lld/ELF/LinkerScript.cpp
@@
-843,9
+843,9
@@
void LinkerScript::adjustSectionsAfterSorting() {
// PHDRS { seg PT_LOAD; }
// SECTIONS { .aaa : { *(.aaa) } }
std::vector<StringRef> DefPhdrs;
- auto FirstPtLoad =
- std::find_if(PhdrsCommands.begin(), PhdrsCommands.end(),
-
[](const PhdrsCommand &Cmd) { return Cmd.Type == PT_LOAD;
});
+ auto FirstPtLoad =
llvm::find_if(PhdrsCommands, [](const PhdrsCommand &Cmd) {
+ return Cmd.Type == PT_LOAD;
+ });
if (FirstPtLoad != PhdrsCommands.end())
DefPhdrs.push_back(FirstPtLoad->Name);