[LLVM] Include Support/Host.h for declaration of getDefaultTargetTriple (#5268)
authorKrzysztof Parzyszek <kparzysz@quicinc.com>
Wed, 8 Apr 2020 03:53:25 +0000 (22:53 -0500)
committerGitHub <noreply@github.com>
Wed, 8 Apr 2020 03:53:25 +0000 (20:53 -0700)
In newer versions of LLVM, this header is no longer included by one of
the already included headers in llvm_common.h, so include it explicitly.

src/target/llvm/llvm_common.h

index 654fdb4..85ee1ee 100644 (file)
@@ -63,6 +63,7 @@
 #include <llvm/Support/Alignment.h>
 #endif
 #include <llvm/Support/FileSystem.h>
+#include <llvm/Support/Host.h>
 #include <llvm/Support/MemoryBuffer.h>
 #include <llvm/Support/raw_ostream.h>
 #include <llvm/Support/Casting.h>