diff options
author | Alexander Shaposhnikov <shal1t712@gmail.com> | 2017-07-29 00:30:45 +0000 |
---|---|---|
committer | Alexander Shaposhnikov <shal1t712@gmail.com> | 2017-07-29 00:30:45 +0000 |
commit | e574034f28edec57868123d040de6a962c9c71e8 (patch) | |
tree | 70632372557a98e4af1d9ae3ad89743684b3bcd9 /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 4fb45077c46fe11ccec1f123178dfd3387b10fdd (diff) | |
download | bcm5719-llvm-e574034f28edec57868123d040de6a962c9c71e8.tar.gz bcm5719-llvm-e574034f28edec57868123d040de6a962c9c71e8.zip |
[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
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/MachOObjectFile.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<uint8_t> Trie, return make_range(export_iterator(Start), export_iterator(Finish)); } -iterator_range<export_iterator> MachOObjectFile::exports(Error &Err, - const MachOObjectFile *O) const { - return exports(Err, getDyldInfoExportsTrie(), O); +iterator_range<export_iterator> MachOObjectFile::exports(Error &Err) const { + return exports(Err, getDyldInfoExportsTrie(), this); } MachORebaseEntry::MachORebaseEntry(Error *E, const MachOObjectFile *O, |