mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Better compatibility with LLVM < 13 (#319)
* Update wrapper to add type attribute on LLVM < 13
This commit is contained in:
committed by
GitHub
parent
137b474f44
commit
df0b1df1df
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user