summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2018-09-11 13:41:58 +0000
committerRui Ueyama <ruiu@google.com>2018-09-11 13:41:58 +0000
commit10454c4fd5644ebac048037f83463820ac9a7bdb (patch)
tree3f14dea6e7a5b602c82a558ec04b163e6b37138e
parente368f467884903d454ae355a4ace3731e20f3232 (diff)
downloadbcm5719-llvm-10454c4fd5644ebac048037f83463820ac9a7bdb.tar.gz
bcm5719-llvm-10454c4fd5644ebac048037f83463820ac9a7bdb.zip
Style fix.
llvm-svn: 341937
-rw-r--r--lld/ELF/Writer.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index ee1889286ba..93d3bc9a1af 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -114,18 +114,16 @@ StringRef elf::getOutputSectionName(const InputSectionBase *S) {
// for instance.
if (Config->ZKeepTextSectionPrefix)
for (StringRef V :
- {".text.hot.", ".text.unlikely.", ".text.startup.", ".text.exit."}) {
+ {".text.hot.", ".text.unlikely.", ".text.startup.", ".text.exit."})
if (isSectionPrefix(V, S->Name))
return V.drop_back();
- }
for (StringRef V :
{".text.", ".rodata.", ".data.rel.ro.", ".data.", ".bss.rel.ro.",
".bss.", ".init_array.", ".fini_array.", ".ctors.", ".dtors.", ".tbss.",
- ".gcc_except_table.", ".tdata.", ".ARM.exidx.", ".ARM.extab."}) {
+ ".gcc_except_table.", ".tdata.", ".ARM.exidx.", ".ARM.extab."})
if (isSectionPrefix(V, S->Name))
return V.drop_back();
- }
// CommonSection is identified as "COMMON" in linker scripts.
// By default, it should go to .bss section.
OpenPOWER on IntegriCloud