summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-nm
diff options
context:
space:
mode:
authorAlexander Shaposhnikov <shal1t712@gmail.com>2017-07-29 00:30:45 +0000
committerAlexander Shaposhnikov <shal1t712@gmail.com>2017-07-29 00:30:45 +0000
commite574034f28edec57868123d040de6a962c9c71e8 (patch)
tree70632372557a98e4af1d9ae3ad89743684b3bcd9 /llvm/tools/llvm-nm
parent4fb45077c46fe11ccec1f123178dfd3387b10fdd (diff)
downloadbcm5719-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/tools/llvm-nm')
-rw-r--r--llvm/tools/llvm-nm/llvm-nm.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/llvm-nm/llvm-nm.cpp b/llvm/tools/llvm-nm/llvm-nm.cpp
index e6378a74306..126a9ae925e 100644
--- a/llvm/tools/llvm-nm/llvm-nm.cpp
+++ b/llvm/tools/llvm-nm/llvm-nm.cpp
@@ -1227,8 +1227,7 @@ dumpSymbolNamesFromObject(SymbolicFile &Obj, bool printName,
HFlags & MachO::MH_NLIST_OUTOFSYNC_WITH_DYLDINFO) {
unsigned ExportsAdded = 0;
Error Err = Error::success();
- for (const llvm::object::ExportEntry &Entry : MachO->exports(Err,
- MachO)) {
+ for (const llvm::object::ExportEntry &Entry : MachO->exports(Err)) {
bool found = false;
bool ReExport = false;
if (!DyldInfoOnly) {
OpenPOWER on IntegriCloud