Adapt llvmorg-18-init-13684-ge1e34cc2a17c: llvm/Support/Host.h

This commit is contained in:
Fangrui Song 2023-12-14 22:07:21 -08:00
parent 490edc1e02
commit f36ecb0c0e

View File

@ -13,7 +13,11 @@
#include <clang/Driver/Tool.h> #include <clang/Driver/Tool.h>
#include <clang/Lex/Lexer.h> #include <clang/Lex/Lexer.h>
#include <clang/Lex/PreprocessorOptions.h> #include <clang/Lex/PreprocessorOptions.h>
#if LLVM_VERSION_MAJOR >= 16 // llvmorg-16-init-15123-gf09cf34d0062
#include <llvm/TargetParser/Host.h>
#else
#include <llvm/Support/Host.h> #include <llvm/Support/Host.h>
#endif
#include <llvm/Support/Path.h> #include <llvm/Support/Path.h>
using namespace clang; using namespace clang;