Skip to content

Commit

Permalink
fixup?
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Dec 11, 2023
1 parent f39cefd commit 0a29b2b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/llvm/ext/llvm_ext.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ using namespace llvm;
#define makeArrayRef ArrayRef
#endif

#if !LLVM_VERSION_GE(18, 0)
typedef struct LLVMOpaqueOperandBundle *LLVMOperandBundleRef;
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(OperandBundleDef, LLVMOperandBundleRef)
#endif

extern "C" {

#if !LLVM_VERSION_GE(9, 0)
Expand All @@ -31,9 +36,6 @@ void LLVMExtClearCurrentDebugLocation(LLVMBuilderRef B) {
#endif

#if !LLVM_VERSION_GE(18, 0)
typedef struct LLVMOpaqueOperandBundle *LLVMOperandBundleRef;
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(OperandBundleDef, LLVMOperandBundleRef)

LLVMOperandBundleRef LLVMExtCreateOperandBundle(const char *Tag, size_t TagLen,
LLVMValueRef *Args,
unsigned NumArgs) {
Expand Down

0 comments on commit 0a29b2b

Please sign in to comment.