[lld] [LLD] Add CLASS syntax to SECTIONS (PR #95323)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 22 14:27:06 PDT 2024
================
@@ -745,8 +832,8 @@ void LinkerScript::processSymbolAssignments() {
for (SectionCommand *cmd : sectionCommands) {
if (auto *assign = dyn_cast<SymbolAssignment>(cmd))
addSymbol(assign);
- else
- for (SectionCommand *subCmd : cast<OutputDesc>(cmd)->osec.commands)
+ else if (auto *od = dyn_cast<OutputDesc>(cmd))
----------------
MaskRay wrote:
We often name `OutputDesc` `osd` (output section description)
https://github.com/llvm/llvm-project/pull/95323
More information about the llvm-commits
mailing list