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:
8d3fcb4
)
[ELF] Simplify. NFC
author
Fangrui Song
<maskray@google.com>
Tue, 22 May 2018 06:28:00 +0000
(06:28 +0000)
committer
Fangrui Song
<maskray@google.com>
Tue, 22 May 2018 06:28:00 +0000
(06:28 +0000)
llvm-svn: 332952
lld/ELF/LTO.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/LTO.cpp
b/lld/ELF/LTO.cpp
index
780c770
..
521657e
100644
(file)
--- a/
lld/ELF/LTO.cpp
+++ b/
lld/ELF/LTO.cpp
@@
-155,8
+155,8
@@
BitcodeCompiler::BitcodeCompiler() {
for (Symbol *Sym : Symtab->getSymbols()) {
StringRef Name = Sym->getName();
for (StringRef Prefix : {"__start_", "__stop_"})
- if (Name.
startswith
(Prefix))
- UsedStartStop.insert(Name
.substr(Prefix.size())
);
+ if (Name.
consume_front
(Prefix))
+ UsedStartStop.insert(Name);
}
}