Skip to content

Commit e161d31

Browse files
authored
LLVM upstream removed Support/Host.h (#505)
Summary: Adjust object-introspection code to LLVM upstreaming moving `Host.h` around. See also: * llvm/llvm-project@e1e34cc * llvm/llvm-project@f09cf34
1 parent 79dca16 commit e161d31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

oi/OICompiler.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@
3232
#include <llvm/ExecutionEngine/ExecutionEngine.h>
3333
#include <llvm/ExecutionEngine/RTDyldMemoryManager.h>
3434
#include <llvm/MC/TargetRegistry.h>
35+
#if LLVM_VERSION_MAJOR >= 16
36+
#include <llvm/TargetParser/Host.h>
37+
#else
3538
#include <llvm/Support/Host.h>
39+
#endif
3640
#include <llvm/Support/Memory.h>
3741
#include <llvm/Support/TargetSelect.h>
3842
#include <llvm/Support/raw_os_ostream.h>

0 commit comments

Comments
 (0)