Author: Nico Weber Date: 2021-01-10T09:35:00-05:00 New Revision: 47991a15d1925cba4687c5077cc9c81c8fcd00bd
URL: https://github.com/llvm/llvm-project/commit/47991a15d1925cba4687c5077cc9c81c8fcd00bd DIFF: https://github.com/llvm/llvm-project/commit/47991a15d1925cba4687c5077cc9c81c8fcd00bd.diff LOG: [lld/mac] llvm style fix: no else after return Added: Modified: lld/MachO/Writer.cpp Removed: ################################################################################ diff --git a/lld/MachO/Writer.cpp b/lld/MachO/Writer.cpp index 53267c072c59..bdc3609e033d 100644 --- a/lld/MachO/Writer.cpp +++ b/lld/MachO/Writer.cpp @@ -557,7 +557,8 @@ static int sectionOrder(OutputSection *osec) { .Case(section_names::unwindInfo, std::numeric_limits<int>::max() - 1) .Case(section_names::ehFrame, std::numeric_limits<int>::max()) .Default(0); - } else if (segname == segment_names::data) { + } + if (segname == segment_names::data) { // For each thread spawned, dyld will initialize its TLVs by copying the // address range from the start of the first thread-local data section to // the end of the last one. We therefore arrange these sections contiguously @@ -575,7 +576,8 @@ static int sectionOrder(OutputSection *osec) { default: return 0; } - } else if (segname == segment_names::linkEdit) { + } + if (segname == segment_names::linkEdit) { return StringSwitch<int>(osec->name) .Case(section_names::rebase, -8) .Case(section_names::binding, -7) _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits