[all-commits] [llvm/llvm-project] ced928: [llvm-objdump] Fix the Assertion failure when prov...

gbreynoo via All-commits all-commits at lists.llvm.org
Thu Nov 4 04:04:11 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ced9287c2dfff254edf85e0a43ad80a2d6dcf7eb
      https://github.com/llvm/llvm-project/commit/ced9287c2dfff254edf85e0a43ad80a2d6dcf7eb
  Author: gbreynoo <Owen.Reynolds at sony.com>
  Date:   2021-11-04 (Thu, 04 Nov 2021)

  Changed paths:
    M llvm/test/tools/llvm-objdump/ELF/ARM/debug-vars-dwarf4.s
    A llvm/test/tools/llvm-objdump/dwarf_invalid.yaml
    M llvm/tools/llvm-objdump/llvm-objdump.cpp
    M llvm/tools/llvm-objdump/llvm-objdump.h

  Log Message:
  -----------
  [llvm-objdump] Fix the Assertion failure when providing invalid --debug-vars or --dwarf values

As seen in https://bugs.llvm.org/show_bug.cgi?id=52213 llvm-objdump
asserts if either the --debug-vars or the --dwarf options are provided
with invalid values. As suggested, this fix adds use of a default value
to these options and errors when given bad input.

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




More information about the All-commits mailing list