This is an archive of the discontinued LLVM Phabricator instance.

[llvm] Update MachOObjectFile::exports interface
AbandonedPublic

Authored by alexander-shaposhnikov on Jul 27 2017, 4:21 PM.

Details

Summary

This diff removes the second argument of the method
MachOObjectFile::exports which was recently introduced in r308690.
In all in-tree uses this argument is equal to "this", additionally
without this argument the interface seems to be cleaner.

Test plan: make check-all

Diff Detail

Repository
rL LLVM

Event Timeline

alexander-shaposhnikov edited the summary of this revision. (Show Details)

Does anyone use the overload with the O for exports with nullptr instead of this? If not, we could just inline this throughout.

tools/llvm-nm/llvm-nm.cpp
1230

I think that using auto here instead of llvm::object:ExportEntry is better for readability.

tools/llvm-objdump/MachODump.cpp
9406

Similar.