[lld] ba8149e - [ELF] Add a comment to handleSectionGroup(). NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 12 09:24:17 PST 2019


Author: Fangrui Song
Date: 2019-12-12T09:23:59-08:00
New Revision: ba8149e27d3d16fabd2573de37fcdd2cc8e1d4ca

URL: https://github.com/llvm/llvm-project/commit/ba8149e27d3d16fabd2573de37fcdd2cc8e1d4ca
DIFF: https://github.com/llvm/llvm-project/commit/ba8149e27d3d16fabd2573de37fcdd2cc8e1d4ca.diff

LOG: [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

Added: 
    

Modified: 
    lld/ELF/InputFiles.cpp

Removed: 
    


################################################################################
diff  --git a/lld/ELF/InputFiles.cpp b/lld/ELF/InputFiles.cpp
index d732f0d2564b..04bad8ef4efd 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 <class ELFT>
 static void handleSectionGroup(ArrayRef<InputSectionBase *> sections,
                                ArrayRef<typename ELFT::Word> entries) {


        


More information about the llvm-commits mailing list