[all-commits] [llvm/llvm-project] 5e508b: [llvm-dwarfdump] Add the --show-sections-sizes option

Djordje Todorovic via All-commits all-commits at lists.llvm.org
Thu Apr 2 04:14:49 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e508b9bac05cef8c1f77a154f943183f97cd131
      https://github.com/llvm/llvm-project/commit/5e508b9bac05cef8c1f77a154f943183f97cd131
  Author: Djordje Todorovic <djordje.todorovic at syrmia.com>
  Date:   2020-04-02 (Thu, 02 Apr 2020)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-dwarfdump.rst
    A llvm/test/tools/llvm-dwarfdump/X86/Inputs/i386_macho_with_debug.yaml
    A llvm/test/tools/llvm-dwarfdump/X86/Inputs/x86_64_macho_with_debug.yaml
    A llvm/test/tools/llvm-dwarfdump/X86/section_sizes_archive.test
    A llvm/test/tools/llvm-dwarfdump/X86/section_sizes_coff.test
    A llvm/test/tools/llvm-dwarfdump/X86/section_sizes_elf.test
    A llvm/test/tools/llvm-dwarfdump/X86/section_sizes_fat_binary.test
    A llvm/test/tools/llvm-dwarfdump/X86/section_sizes_macho.test
    A llvm/test/tools/llvm-dwarfdump/X86/section_sizes_no_debug_sections.test
    M llvm/test/tools/llvm-dwarfdump/X86/statistics.ll
    M llvm/tools/llvm-dwarfdump/CMakeLists.txt
    A llvm/tools/llvm-dwarfdump/SectionSizes.cpp
    A llvm/tools/llvm-dwarfdump/SectionSizes.h
    M llvm/tools/llvm-dwarfdump/Statistics.cpp
    M llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp

  Log Message:
  -----------
  [llvm-dwarfdump] Add the --show-sections-sizes option

Add an option to llvm-dwarfdump to calculate the bytes within
the debug sections. Dump this numbers when using --statistics
option as well.

This is an initial patch (e.g. we should support other units,
since we only support 'bytes' now).

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




More information about the All-commits mailing list