This is a refactoring follow-up for D62809 "Change how we handle implicit sections.".
It allows to simplify the code.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
tools/yaml2obj/yaml2elf.cpp | ||
---|---|---|
313 ↗ | (On Diff #203163) | It's not immediately obvious from reading the code that Sec can only be nullptr if it is an implicit section. I wonder if it would be clearer to the future reader to add an explicit assert somewhere around here to document that point? |
Comment Actions
- Addressed review comment.
tools/yaml2obj/yaml2elf.cpp | ||
---|---|---|
313 ↗ | (On Diff #203163) | Added an assert. |