HomePhabricator

[llvm-objdump] Simplify disassembleObject

Authored by MaskRay on Apr 6 2019, 10:32 PM.

Description

[llvm-objdump] Simplify disassembleObject

  • Use std::binary_search to replace some std::lower_bound
  • Use llvm::upper_bound to replace some std::upper_bound
  • Use format_hex and support::endian::read{16,32}

llvm-svn: 357853

Details

Committed
MaskRayApr 6 2019, 10:32 PM
Parents
rG6a0746a92f07: Change some StringRef::data() reinterpret_cast to bytes_begin() or…
Branches
Unknown
Tags
Unknown