[all-commits] [llvm/llvm-project] 670dba: [DebugInfo] Fix LineTest byteswap for cross-target...

David Tenty via All-commits all-commits at lists.llvm.org
Thu Jul 2 11:39:59 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 670dbad473270a2bd46fc611bd48472685403ed6
      https://github.com/llvm/llvm-project/commit/670dbad473270a2bd46fc611bd48472685403ed6
  Author: David Tenty <daltenty at ibm.com>
  Date:   2020-07-02 (Thu, 02 Jul 2020)

  Changed paths:
    M llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp

  Log Message:
  -----------
  [DebugInfo] Fix LineTest byteswap for cross-targeting builds

Summary:
The byte swap fix for big endian hosts in 9782c922cb21 (for D81570)
swaps based on the host endianess,  but for cross-targeting builds (i.e.
big endian host targeting little endian) the host-endianess won't
necessarily match the generated DWARF. This change updates the test
to use symmetrical constants so the results aren't endian dependent.

Reviewers: jhenderson, hubert.reinterpretcast, stevewan, ikudrin

Reviewed By: ikudrin

Subscribers: ikudrin, aprantl, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list