This patch helps simplify some codes in writeSectionData() function.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks fine. I'm slightly nervous by the hard-coded 16 for the section name max length, but it's probably okay for now, and is no worse than what was there before.
Comment Actions
Why don't we use something like
assert(sizeof(segname) == 16), or a static assert for segname, or strncmp(&Sec.segname[0], "__DWARF", sizeof(segname)))?