Better compatibility with LLVM < 13 (#319)

* Update wrapper to add type attribute on LLVM < 13
This commit is contained in:
Christoffer Lerno
2021-11-09 22:53:13 +01:00
committed by GitHub
parent 137b474f44
commit df0b1df1df
4 changed files with 19 additions and 9 deletions

View File

@@ -187,6 +187,10 @@ void gencontext_end_file_emit(GenContext *c, Context *ast);
void gencontext_end_module(GenContext *context);
LLVMValueRef LLVMConstBswap(LLVMValueRef ConstantVal);
#ifndef LLVMCreateTypeAttribute
LLVMAttributeRef LLVMCreateTypeAttribute(LLVMContextRef C, unsigned KindID,
LLVMTypeRef type_ref);
#endif
// BE value
void llvm_value_addr(GenContext *c, BEValue *value);