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
Event Timeline
tools/yaml2obj/yaml2elf.cpp | ||
---|---|---|
313 | 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? |
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?