[lld] r281835 - [ELF] - Added comments. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 17 12:17:25 PDT 2016
Author: grimar
Date: Sat Sep 17 14:17:25 2016
New Revision: 281835
URL: http://llvm.org/viewvc/llvm-project?rev=281835&view=rev
Log:
[ELF] - Added comments. NFC.
Modified:
lld/trunk/ELF/LinkerScript.cpp
Modified: lld/trunk/ELF/LinkerScript.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/LinkerScript.cpp?rev=281835&r1=281834&r2=281835&view=diff
==============================================================================
--- lld/trunk/ELF/LinkerScript.cpp (original)
+++ lld/trunk/ELF/LinkerScript.cpp Sat Sep 17 14:17:25 2016
@@ -1065,6 +1065,10 @@ static void selectSortKind(InputSectionD
// Method reads a list of sequence of excluded files and section globs given in
// a following form: ((EXCLUDE_FILE(file_pattern+))? section_pattern+)+
// Example: *(.foo.1 EXCLUDE_FILE (*a.o) .foo.2 EXCLUDE_FILE (*b.o) .foo.3)
+// The semantics of that is next:
+// * Include .foo.1 from every file.
+// * Include .foo.2 from every file but a.o
+// * Include .foo.3 from every file but b.o
void ScriptParser::readSectionExcludes(InputSectionDescription *Cmd) {
Regex ExcludeFileRe;
std::vector<StringRef> V;
More information about the llvm-commits
mailing list