diff options
author | Reid Kleckner <rnk@google.com> | 2019-10-19 00:48:11 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2019-10-19 00:48:11 +0000 |
commit | 45f33cf9da0cace7fc89c631b542de82b0f36f6c (patch) | |
tree | caa9134aa2bab2d2ab269231792e514dc4a0b7b8 /include/lld/Common/LLVM.h | |
parent | 85c8ee18394b0813d1d5a3992e3eb2df8657af23 (diff) |
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/lld/trunk@375316 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/lld/Common/LLVM.h')
-rw-r--r-- | include/lld/Common/LLVM.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/lld/Common/LLVM.h b/include/lld/Common/LLVM.h index f7ed1d793..34b7b0d19 100644 --- a/include/lld/Common/LLVM.h +++ b/include/lld/Common/LLVM.h @@ -17,6 +17,7 @@ // This should be the only #include, force #includes of all the others on // clients. #include "llvm/ADT/Hashing.h" +#include "llvm/ADT/StringRef.h" #include "llvm/Support/Casting.h" #include <utility> |