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

David via All-commits all-commits at lists.llvm.org
Mon Mar 16 04:18:13 PDT 2020


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

  Changed paths:
    M llvm/lib/DWARFLinker/DWARFLinker.cpp
    M llvm/test/tools/dsymutil/Inputs/op-convert.ll
    M llvm/test/tools/dsymutil/Inputs/op-convert.macho.x86_64
    M llvm/test/tools/dsymutil/X86/op-convert.test

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

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 the 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 dsymutil.

Reviewers: aprantl, markus, friss, JDevlieghere

Reviewed By: aprantl, JDevlieghere

Subscribers: hiraditya, llvm-commits

Tags: #debug-info, #llvm

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




More information about the All-commits mailing list