commit | ec5c4adbf267ae020c7b44161ca6f4484932d7f8 | [log] [tgz] |
---|---|---|
author | Rui Ueyama <ruiu@google.com> | Wed Oct 11 03:23:17 2017 +0000 |
committer | Rui Ueyama <ruiu@google.com> | Wed Oct 11 03:23:17 2017 +0000 |
tree | aa49534f7047e90fd22a91837c43e684b4e721b2 | |
parent | 2b714b56a9c8cf3a7ee6a2dbf9b7d03af331f2c2 [diff] [blame] |
Add comment. llvm-svn: 315423
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 563cbba..2740f14 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp
@@ -275,6 +275,9 @@ !Pat.SectionPat.match(Sec->Name)) continue; + // It is safe to assume that Sec is an InputSection + // because mergeable or EH input sections have already been + // handled and eliminated. Ret.push_back(cast<InputSection>(Sec)); Sec->Assigned = true; }