This way we don't end up printing garbage. Found while testing lld-macho.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Interesting. Would it be better to change the StringRef to a std::string instead? That way the data structure itself maintains the full info.
Comment Actions
I think it's a good idea (we should probably do the same for Section, but we can take care of that in a separate commit).
Thanks!