[Support] Remove byte swapping from MathExtras.h
authorReid Kleckner <rnk@google.com>
Fri, 28 Feb 2020 01:06:48 +0000 (17:06 -0800)
committerReid Kleckner <rnk@google.com>
Fri, 28 Feb 2020 01:23:48 +0000 (17:23 -0800)
commite3a9b0f35955ab0fdcba3da713bb2f4cd0b29680
tree35902049b194830fd4580215a1a89197b5ad5bdb
parent470db54cbdf1ce65e7084aa42a8c5e9f1c41a9bd
[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.
lldb/include/lldb/Core/Opcode.h
llvm/include/llvm/Support/MathExtras.h
llvm/include/llvm/Support/SwapByteOrder.h
llvm/lib/Support/ConvertUTFWrapper.cpp
llvm/lib/Support/Triple.cpp
llvm/unittests/Support/MathExtrasTest.cpp
llvm/unittests/Support/SwapByteOrderTest.cpp