I don't think there's a need to use const char *. In most (probably all?)
cases, we need a length of a name later, so discarding a length will
lead to a wasted effort.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Looks reasonable, LGTM.
For LLD this seems helps to avoid double find of the name field length:
https://github.com/llvm-mirror/lld/blob/master/ELF/SyntheticSections.cpp#L2219