]> granicus.if.org Git - clang/commit
Move endian constant from Host.h to SwapByteOrder.h, prune include
authorReid Kleckner <rnk@google.com>
Sat, 19 Oct 2019 00:48:11 +0000 (00:48 +0000)
committerReid Kleckner <rnk@google.com>
Sat, 19 Oct 2019 00:48:11 +0000 (00:48 +0000)
commit7decfe83555385bebac2e4bed35035f3b0f4d666
tree5d13dfd621281c9248677a8ed0d809343202fd52
parentb300d3566a7bb528c0ca2994a74dcab46f50eb97
Move endian constant from Host.h to SwapByteOrder.h, prune include

Works on this dependency chain:
  ArrayRef.h ->
  Hashing.h -> --CUT--
  Host.h ->
  StringMap.h / StringRef.h

ArrayRef is very popular, but Host.h is rarely needed. Move the
IsBigEndianHost constant to SwapByteOrder.h. Clients of that header are
more likely to need it.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375316 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Arch/AArch64.cpp
lib/Driver/ToolChains/Arch/ARM.cpp
lib/Driver/ToolChains/Arch/PPC.cpp
lib/Driver/ToolChains/Arch/X86.cpp