1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/tools/llvm-objdump
Jordan Rupprecht 10ac04de80 [llvm-objdump] Use a counter for llvm-objdump -h instead of the section index.
Summary:
When listing the index in `llvm-objdump -h`, use a zero-based counter instead of the actual section index (e.g. shdr->sh_index for ELF).

While this is effectively a noop for now (except one unit test for XCOFF), the index values will change in a future patch that filters certain sections out (e.g. symbol tables). See D68669 for more context. Note: the test case in `test/tools/llvm-objdump/X86/section-index.s` already covers the case of incrementing the section index counter when sections are skipped.

Reviewers: grimar, jhenderson, espindola

Reviewed By: grimar

Subscribers: emaste, sbc100, arichardson, aheejin, arphaman, seiya, llvm-commits, MaskRay

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D68848

llvm-svn: 374931
2019-10-15 18:13:20 +00:00
..
CMakeLists.txt Fix debug build by adding missing dependencies on libBinaryFormat 2018-05-15 00:46:43 +00:00
COFFDump.cpp [llvm-objdump] - Cleanup the error reporting. 2019-08-21 11:07:31 +00:00
ELFDump.cpp [llvm-objdump] - Cleanup the error reporting. 2019-08-21 11:07:31 +00:00
llvm-objdump.cpp [llvm-objdump] Use a counter for llvm-objdump -h instead of the section index. 2019-10-15 18:13:20 +00:00
llvm-objdump.h [llvm-objdump] Use a counter for llvm-objdump -h instead of the section index. 2019-10-15 18:13:20 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachODump.cpp Can't pass .dSYM directory to llvm-objdump -dsym= (and error message is wrong) 2019-09-20 19:13:24 +00:00
WasmDump.cpp [llvm-objdump] Wrap things in namespace llvm 2019-04-15 15:31:42 +00:00