[all-commits] [llvm/llvm-project] 021f53: [DebugInfo] Fix DebugLine::Prologue::getLength

James Henderson via All-commits all-commits at lists.llvm.org
Thu Jan 30 01:39:19 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 021f531786df4a21c67eb7b238b97a84263e36c7
      https://github.com/llvm/llvm-project/commit/021f531786df4a21c67eb7b238b97a84263e36c7
  Author: James Henderson <james.henderson at sony.com>
  Date:   2020-01-30 (Thu, 30 Jan 2020)

  Changed paths:
    M llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
    M llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
    M llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp

  Log Message:
  -----------
  [DebugInfo] Fix DebugLine::Prologue::getLength

The function a) returned 32-bits when in DWARF64, the PrologueLength
field is 64-bits in size, and b) didn't work for DWARF version 5.

Also deleted some related dead code. With this deletion, getLength is
itself dead, but another change is about to make use of it.

Reviewed by: probinson

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




More information about the All-commits mailing list