From ba8149e27d3d16fabd2573de37fcdd2cc8e1d4ca Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 12 Dec 2019 09:23:06 -0800 Subject: [PATCH] [ELF] Add a comment to handleSectionGroup(). NFC Apply suggestion in https://reviews.llvm.org/D71157#1780834 Reviewed By: grimar, ruiu Differential Revision: https://reviews.llvm.org/D71388 --- lld/ELF/InputFiles.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp index d732f0d..04bad8e 100644 --- a/lld/ELF/InputFiles.cpp +++ b/lld/ELF/InputFiles.cpp @@ -497,6 +497,8 @@ static void addDependentLibrary(StringRef specifier, const InputFile *f) { specifier); } +// Record the membership of a section group so that in the garbage collection +// pass, section group members are kept or discarded as a unit. template static void handleSectionGroup(ArrayRef sections, ArrayRef entries) { -- 2.7.4