mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Implement static finalize / initialize. Version bump.
This commit is contained in:
committed by
Christoffer Lerno
parent
58647043f4
commit
e1b5b0b60c
@@ -5,6 +5,8 @@
|
||||
#include "llvm/Object/ArchiveWriter.h"
|
||||
#include "llvm/Object/IRObjectFile.h"
|
||||
#include "llvm/Object/SymbolicFile.h"
|
||||
#include "llvm-c/TargetMachine.h"
|
||||
#include "llvm/Target/TargetMachine.h"
|
||||
|
||||
#if LLVM_VERSION_MAJOR > 13
|
||||
#define LINK_SIG \
|
||||
@@ -167,6 +169,12 @@ extern "C" {
|
||||
|
||||
int llvm_version_major = LLVM_VERSION_MAJOR;
|
||||
|
||||
void LLVMSetTargetMachineUseInitArray(LLVMTargetMachineRef ref, bool use_init_array)
|
||||
{
|
||||
auto machine = reinterpret_cast<llvm::TargetMachine *>(ref);
|
||||
machine->Options.UseInitArray = use_init_array;
|
||||
}
|
||||
|
||||
LLVMValueRef LLVMConstBswap(LLVMValueRef ConstantVal)
|
||||
{
|
||||
llvm::Constant *Val = llvm::unwrap<llvm::Constant>(ConstantVal);
|
||||
|
||||
Reference in New Issue
Block a user