llvm.org GIT mirror llvm / 5a5132a
[llvm-readobj] Delete and inline relocAddressLess It is used only once in COFFDumper.cpp. Deleting it from the public interface seems better. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359775 91177308-0d34-0410-b5e6-96231b3b80d8 Fangrui Song 1 year, 5 months ago
3 changed file(s) with 3 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
591591 RelocMap[Section].push_back(Reloc);
592592
593593 // Sort relocations by address.
594 llvm::sort(RelocMap[Section], relocAddressLess);
594 llvm::sort(RelocMap[Section], [](RelocationRef L, RelocationRef R) {
595 return L.getOffset() < R.getOffset();
596 });
595597 }
596598 }
597599
383383 if (!EC)
384384 return;
385385 reportError(EC.message());
386 }
387
388 bool relocAddressLess(RelocationRef a, RelocationRef b) {
389 return a.getOffset() < b.getOffset();
390386 }
391387
392388 } // namespace llvm
4242 OS.flush();
4343 reportError(Buf);
4444 }
45 bool relocAddressLess(object::RelocationRef A,
46 object::RelocationRef B);
4745 } // namespace llvm
4846
4947 namespace opts {