1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/tools
Jordan Rupprecht a49fda1bba Reland [llvm-objdump] Use a counter for llvm-objdump -h instead of the section index.
This relands r374931 (reverted in r375088). It fixes 32-bit builds by using the right format string specifier for uint64_t (PRIu64) instead of `%d`.

Original description:

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: 375178
2019-10-17 21:55:43 +00:00
..
bugpoint [bugpoint] Update runPasses to take ArrayRef instead of a pointer (NFC) 2019-09-30 21:00:50 +00:00
bugpoint-passes
dsymutil [dsymutil] Print warning/error for unknown/missing arguments. 2019-10-16 21:48:41 +00:00
gold [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
llc [NewPM] Port MachineModuleInfo to the new pass manager. 2019-09-30 17:54:50 +00:00
lli [cmake] Link in LLVMPasses due to dependency by LLVMOrcJIT; NFC 2019-08-19 23:12:48 +00:00
llvm-ar [llvm-ar] Implement the O modifier: display member offsets inside the archive 2019-10-17 11:34:29 +00:00
llvm-as Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-as-fuzzer
llvm-bcanalyzer
llvm-c-test [LLVM-C] Add bindings to create macro debug info 2019-10-07 13:57:13 +00:00
llvm-cat Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-cfi-verify [llvm-objdump] Add warning messages if disassembly + source for problematic inputs 2019-08-15 05:15:22 +00:00
llvm-config [NFC][cmake] Build fix in tools/llvm-config/CMakeLists.txt 2019-08-26 09:42:30 +00:00
llvm-cov [Alignment][NFC] Remove unneeded llvm:: scoping on Align types 2019-09-27 12:54:21 +00:00
llvm-cvtres
llvm-cxxdump
llvm-cxxfilt
llvm-cxxmap Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-diff
llvm-dis [Tools] Mark output of tools as text if it is text 2019-10-08 08:21:20 +00:00
llvm-dwarfdump [Tools] Mark output of tools as text if it is text 2019-10-08 08:21:20 +00:00
llvm-dwp Recommit r368812 "[llvm/Object] - Convert SectionRef::getName() to return Expected<>" 2019-08-14 11:10:11 +00:00
llvm-elfabi [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
llvm-exegesis [Mips][llvm-exegesis] Add a Mips target 2019-10-11 20:26:08 +00:00
llvm-extract [llvm-extract] Update the help message for group extraction feature 2019-08-20 20:45:16 +00:00
llvm-go Bump llvm-go to C++14 2019-08-15 10:55:25 +00:00
llvm-ifs [TextAPI] Arch&Platform to Target 2019-09-20 14:32:34 +00:00
llvm-isel-fuzzer [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
llvm-itanium-demangle-fuzzer
llvm-jitlink [JITLink] Switch from an atom-based model to a "blocks and symbols" model. 2019-10-04 03:55:26 +00:00
llvm-jitlistener
llvm-link [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
llvm-lipo [llvm-lipo] Add missing cast 2019-10-15 20:10:34 +00:00
llvm-lto [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
llvm-lto2 [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
llvm-mc [WebAssembly] Allow multivalue types in block signature operands 2019-10-15 18:28:22 +00:00
llvm-mc-assemble-fuzzer [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
llvm-mc-disassemble-fuzzer
llvm-mca [MCA] Show aggregate over Average Wait times for the whole snippet (PR43219) 2019-10-10 14:46:21 +00:00
llvm-microsoft-demangle-fuzzer
llvm-modextract Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-mt
llvm-nm Revert [llvm-nm] Add tapi file support 2019-09-11 21:35:28 +00:00
llvm-objcopy [llvm-objcopy] Add support for shell wildcards 2019-10-17 20:51:00 +00:00
llvm-objdump Reland [llvm-objdump] Use a counter for llvm-objdump -h instead of the section index. 2019-10-17 21:55:43 +00:00
llvm-opt-fuzzer [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
llvm-opt-report [llvm-opt-report] Improve error handling 2019-09-13 20:52:04 +00:00
llvm-pdbutil [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
llvm-profdata [SampleFDO] Add compression support for any section in ExtBinary profile format 2019-10-07 16:12:37 +00:00
llvm-rc [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
llvm-readobj [llvm-readobj] - Refine the LLVM-style output to be consistent. 2019-10-17 10:23:48 +00:00
llvm-reduce llvm-reduce: Follow-up to 372280, now with more-better msan fixing 2019-09-19 20:04:04 +00:00
llvm-rtdyld Added return statement to fix compile and build warning: 2019-09-16 10:30:37 +00:00
llvm-shlib [LLVM-C] Fix omission of INSTALL_WITH_TOOLCHAIN to llvm_add_library() 2019-08-28 22:59:04 +00:00
llvm-size Reapply: [llvm-size] Tidy up error messages (PR42970) 2019-10-14 17:29:15 +00:00
llvm-special-case-list-fuzzer
llvm-split Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
llvm-stress [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
llvm-strings
llvm-symbolizer llvm-symbolizer: Untag addresses in object files by default. 2019-08-05 20:59:25 +00:00
llvm-undname [Demangle] Add a few more options to the microsoft demangler 2019-10-15 08:29:56 +00:00
llvm-xray [llvm-objdump] Add warning messages if disassembly + source for problematic inputs 2019-08-15 05:15:22 +00:00
llvm-yaml-numeric-parser-fuzzer
lto [LTO][Legacy] Add new C inferface to query libcall functions 2019-09-16 18:49:54 +00:00
msbuild
obj2yaml Recommit r373598 "[yaml2obj/obj2yaml] - Add support for SHT_LLVM_ADDRSIG sections." 2019-10-03 14:52:33 +00:00
opt [Tools] Mark output of tools as text if it is text 2019-10-08 08:21:20 +00:00
opt-viewer [llvm] [cmake] Add install targets for missing distribution components 2019-10-02 16:06:50 +00:00
remarks-shlib [Remarks] Add parser for bitstream remarks 2019-09-09 17:43:50 +00:00
sancov Revert 374629 "[sancov] Accommodate sancov and coverage report server for use under Windows" 2019-10-12 05:23:43 +00:00
sanstats
verify-uselistorder Rename F_{None,Text,Append} to OF_{None,Text,Append}. NFC 2019-08-05 05:43:48 +00:00
vfabi-demangle-fuzzer [SVFS] Vector Function ABI demangling. 2019-09-19 17:47:32 +00:00
xcode-toolchain
yaml2obj [yaml2obj/ObjectYAML] - Cleanup the error reporting API, add custom errors handlers. 2019-09-13 16:00:16 +00:00
CMakeLists.txt
LLVMBuild.txt [llvm-ifs][IFS] llvm Interface Stubs merging + object file generation tool. 2019-08-30 18:26:05 +00:00