[all-commits] [llvm/llvm-project] e3a9b0: [Support] Remove byte swapping from MathExtras.h

Reid Kleckner via All-commits all-commits at lists.llvm.org
Thu Feb 27 17:23:54 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e3a9b0f35955ab0fdcba3da713bb2f4cd0b29680
      https://github.com/llvm/llvm-project/commit/e3a9b0f35955ab0fdcba3da713bb2f4cd0b29680
  Author: Reid Kleckner <rnk at google.com>
  Date:   2020-02-27 (Thu, 27 Feb 2020)

  Changed paths:
    M lldb/include/lldb/Core/Opcode.h
    M llvm/include/llvm/Support/MathExtras.h
    M llvm/include/llvm/Support/SwapByteOrder.h
    M llvm/lib/Support/ConvertUTFWrapper.cpp
    M llvm/lib/Support/Triple.cpp
    M llvm/unittests/Support/MathExtrasTest.cpp
    M llvm/unittests/Support/SwapByteOrderTest.cpp

  Log Message:
  -----------
  [Support] Remove byte swapping from MathExtras.h

MathExtras.h was just wrapping SwapByteOrder.h functionality, so have
the callers use it directly.  Use the MathExtras.h name (ByteSwap_NN) as
the standard naming, since it appears to be the most popular.




More information about the All-commits mailing list