[all-commits] [llvm/llvm-project] c93652: [DebugInfo] Handle generic type DW_OP_convert ops ...

David via All-commits all-commits at lists.llvm.org
Mon Mar 16 03:25:58 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c93652517c810a3afafe6d2a57b528bf2692a165
      https://github.com/llvm/llvm-project/commit/c93652517c810a3afafe6d2a57b528bf2692a165
  Author: David Stenberg <david.stenberg at ericsson.com>
  Date:   2020-03-16 (Mon, 16 Mar 2020)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp
    A llvm/test/tools/llvm-dwarfdump/X86/debug_expr_convert_generic.s

  Log Message:
  -----------
  [DebugInfo] Handle generic type DW_OP_convert ops in llvm-dwarfdump

Summary:
This is a preparatory change for allowing LLVM to emit DW_OP_convert
operations converting to the generic type.

If DW_OP_convert's operand is 0, it converts the top of stack to the
generic type, as specified by DWARFv5 section 2.5.1.6:

"[...] takes one operand, which is an unsigned LEB128 integer that
 represents the offset of a debugging information entry in the current
 compilation unit, or value 0 which represents the generic type."

This adds support for such operations to llvm-dwarfdump.

Reviewers: aprantl, markus, jdoerfert, jhenderson

Reviewed By: aprantl

Subscribers: hiraditya, llvm-commits

Tags: #debug-info, #llvm

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




More information about the All-commits mailing list