This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj/MachO] Ensure we always have a valid reference to SegmentName
ClosedPublic

Authored by davide on Sep 21 2015, 5:41 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

davide updated this revision to Diff 35331.Sep 21 2015, 5:41 PM
davide retitled this revision from to [llvm-readobj/MachO] Ensure we always have a valid reference to SegmentName.
davide updated this object.
davide added reviewers: rafael, echristo, grosbach.
davide added a subscriber: llvm-commits.
davide updated this revision to Diff 35332.Sep 21 2015, 5:44 PM

git-clang-format.

grosbach edited edge metadata.Sep 21 2015, 5:45 PM

Interesting. Would it be better to change the StringRef to a std::string instead? That way the data structure itself maintains the full info.

davide updated this revision to Diff 35334.Sep 21 2015, 5:54 PM
davide edited edge metadata.

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!

grosbach accepted this revision.Sep 21 2015, 6:10 PM
grosbach edited edge metadata.

LGTM

This revision is now accepted and ready to land.Sep 21 2015, 6:10 PM
This revision was automatically updated to reflect the committed changes.