[all-commits] [llvm/llvm-project] 53d234: [Support] Reduce Dependence on Host.h

Sam Elliott via All-commits all-commits at lists.llvm.org
Mon Nov 21 10:29:02 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 53d234eab637307955f562974f76742b906024f5
      https://github.com/llvm/llvm-project/commit/53d234eab637307955f562974f76742b906024f5
  Author: Archibald Elliott <archibald.elliott at arm.com>
  Date:   2022-11-21 (Mon, 21 Nov 2022)

  Changed paths:
    M llvm/include/llvm/Support/OnDiskHashTable.h
    M llvm/lib/Support/FoldingSet.cpp
    M llvm/lib/Support/SHA1.cpp
    M llvm/lib/Support/SHA256.cpp

  Log Message:
  -----------
  [Support] Reduce Dependence on Host.h

The intention behind this commit is to reduce the use of Host.h/Host.cpp
in Support, to where it is only necessary.

In this case, the endian-detection and support functionality needed by
these implementations can be provided by `Support/SwapByteOrder.h` in a
cleaner manner.

This patch also changes the byte swap in SHA256.cpp to use the byte swap
function from that header, rather than an inlined implementation.

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




More information about the All-commits mailing list