mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Adding saturated builtins. Remove LLVM 12 support. Remove old llvm optimizer use.
This commit is contained in:
committed by
Christoffer Lerno
parent
fd9d300b06
commit
a66c0942f8
@@ -165,21 +165,8 @@ extern "C" {
|
||||
return !llvm::writeArchive(std::string(out_name), std::move(new_members), true, kind, true, false, nullptr);
|
||||
}
|
||||
|
||||
int llvm_version_major = LLVM_VERSION_MAJOR;
|
||||
#if LLVM_VERSION_MAJOR < 13
|
||||
#if _MSC_VER
|
||||
__declspec(selectany)
|
||||
#else
|
||||
__attribute__((weak))
|
||||
#endif
|
||||
LLVMAttributeRef LLVMCreateTypeAttribute(LLVMContextRef C, unsigned KindID,
|
||||
LLVMTypeRef type_ref)
|
||||
{
|
||||
auto &Ctx = *llvm::unwrap(C);
|
||||
auto AttrKind = (llvm::Attribute::AttrKind)KindID;
|
||||
return wrap(llvm::Attribute::get(Ctx, AttrKind, llvm::unwrap(type_ref)));
|
||||
}
|
||||
#endif
|
||||
int llvm_version_major = LLVM_VERSION_MAJOR;
|
||||
|
||||
LLVMValueRef LLVMConstBswap(LLVMValueRef ConstantVal)
|
||||
{
|
||||
llvm::Constant *Val = llvm::unwrap<llvm::Constant>(ConstantVal);
|
||||
|
||||
Reference in New Issue
Block a user