File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 2626#include < clang/Frontend/TextDiagnosticPrinter.h>
2727#include < clang/Frontend/Utils.h>
2828#include < clang/Lex/PreprocessorOptions.h>
29- #include < llvm/Support/Host.h>
29+ #if OSL_LLVM_VERSION < 160
30+ # include < llvm/Support/Host.h>
31+ #else
32+ # include < llvm/TargetParser/Host.h>
33+ #endif
3034#include < llvm/Support/MemoryBuffer.h>
3135#include < llvm/Support/ToolOutputFile.h>
3236#include < llvm/Support/raw_ostream.h>
Original file line number Diff line number Diff line change @@ -349,7 +349,11 @@ template<int WidthT> class PreventBitMasksFromBeingLiveinsToBasicBlocks {
349349 // Should handle promoting whatever the constant value is (most likely zeroinitializer)
350350 llvm::ConstantFolder Folder;
351351 auto * signExtConstant
352+ #if OSL_LLVM_VERSION < 180
352353 = Folder.CreateCast (
354+ #else
355+ = Folder.FoldCast (
356+ #endif
353357 llvm::Instruction::SExt,
354358 constant, m_native_mask_type);
355359
Original file line number Diff line number Diff line change 4545#include < llvm/Support/CommandLine.h>
4646#include < llvm/Support/ErrorOr.h>
4747#include < llvm/Support/FileSystem.h>
48- #include < llvm/Support/Host.h>
48+ #if OSL_LLVM_VERSION < 160
49+ # include < llvm/Support/Host.h>
50+ #else
51+ # include < llvm/TargetParser/Host.h>
52+ #endif
4953#include < llvm/Support/raw_os_ostream.h>
5054#if OSL_LLVM_VERSION < 140
5155# include < llvm/Support/TargetRegistry.h>
You can’t perform that action at this time.
0 commit comments