From e574034f28edec57868123d040de6a962c9c71e8 Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Sat, 29 Jul 2017 00:30:45 +0000 Subject: [llvm] Update MachOObjectFile::exports interface This diff removes the second argument of the method MachOObjectFile::exports. In all in-tree uses this argument is equal to "this" and without this argument the interface seems to be cleaner. Test plan: make check-all llvm-svn: 309462 --- llvm/lib/Object/MachOObjectFile.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Object/MachOObjectFile.cpp') diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index 579faf607c0..af8ee40590a 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -2908,9 +2908,8 @@ MachOObjectFile::exports(Error &E, ArrayRef Trie, return make_range(export_iterator(Start), export_iterator(Finish)); } -iterator_range MachOObjectFile::exports(Error &Err, - const MachOObjectFile *O) const { - return exports(Err, getDyldInfoExportsTrie(), O); +iterator_range MachOObjectFile::exports(Error &Err) const { + return exports(Err, getDyldInfoExportsTrie(), this); } MachORebaseEntry::MachORebaseEntry(Error *E, const MachOObjectFile *O, -- cgit v1.2.3