]> granicus.if.org Git - clang/commitdiff
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)
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

index 35d11f4e2d3b3727f93ddffdca92ff2e965e0a26..3a5fe6ddeaed5f173f427397d4d944a00932320d 100644 (file)
@@ -12,6 +12,7 @@
 #include "clang/Driver/Options.h"
 #include "llvm/Option/ArgList.h"
 #include "llvm/Support/TargetParser.h"
+#include "llvm/Support/Host.h"
 
 using namespace clang::driver;
 using namespace clang::driver::tools;
index b99a1b4d369498db9eb2b5927e7d1b097ebc7d99..68a57310ad4026115b59442ac8003821f9dc5e6f 100644 (file)
@@ -13,6 +13,7 @@
 #include "llvm/ADT/StringSwitch.h"
 #include "llvm/Option/ArgList.h"
 #include "llvm/Support/TargetParser.h"
+#include "llvm/Support/Host.h"
 
 using namespace clang::driver;
 using namespace clang::driver::tools;
index 59ff7cbc787c7efb9c010481a23a329cc844f570..3e02e57e0f6c7a65523d3adc3449f8afb64ef325 100644 (file)
@@ -13,6 +13,7 @@
 #include "clang/Driver/Options.h"
 #include "llvm/ADT/StringSwitch.h"
 #include "llvm/Option/ArgList.h"
+#include "llvm/Support/Host.h"
 
 using namespace clang::driver;
 using namespace clang::driver::tools;
index 34be226b69e9806a9c96c8e55113934019953a96..d2b97bf6ad719404708c75505a48a3068f90d81c 100644 (file)
@@ -13,6 +13,7 @@
 #include "clang/Driver/Options.h"
 #include "llvm/ADT/StringSwitch.h"
 #include "llvm/Option/ArgList.h"
+#include "llvm/Support/Host.h"
 
 using namespace clang::driver;
 using namespace clang::driver::tools;