This patch is extracted from the https://reviews.llvm.org/D126950.
It renames getOutputDataSegmentName static function to getOutputSegmentName, and also place it in InputChunk to reuse it while GCing sections.
Details
Details
- Reviewers
sbc100
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
lld/wasm/InputChunks.cpp | ||
---|---|---|
531 | Actually, looking at this code and looking at how ELF does this.. I think you can just use getName in the other patch and maybe this patch is not actually needed? None of these combined segments return true for isValidCIdentifier so I think you can just to what ELF in its MakeLive.cpp and use the intput section name. |
lld/wasm/InputChunks.cpp | ||
---|---|---|
531 | Ah, it makes sense to me. |
Actually, looking at this code and looking at how ELF does this.. I think you can just use getName in the other patch and maybe this patch is not actually needed?
None of these combined segments return true for isValidCIdentifier so I think you can just to what ELF in its MakeLive.cpp and use the intput section name.