Fix build issues once LLVM has been upgraded
* LLVM now has a C interface to LLVMBuildAtomicRMW * The exception handling support for the JIT seems to have been dropped * Various interfaces have been added or headers have changed
This commit is contained in:
parent
1d06aaae64
commit
8d29367650
5 changed files with 6 additions and 13 deletions
|
@ -113,6 +113,7 @@ public:
|
|||
|
||||
virtual uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment,
|
||||
unsigned SectionID, bool isReadOnly);
|
||||
bool finalizeMemory(std::string *ErrMsg) { return false; }
|
||||
|
||||
virtual bool applyPermissions(std::string *Str);
|
||||
|
||||
|
@ -340,7 +341,6 @@ LLVMRustBuildJIT(void* mem,
|
|||
|
||||
std::string Err;
|
||||
TargetOptions Options;
|
||||
Options.JITExceptionHandling = true;
|
||||
Options.JITEmitDebugInfo = true;
|
||||
Options.NoFramePointerElim = true;
|
||||
Options.EnableSegmentedStacks = EnableSegmentedStacks;
|
||||
|
@ -516,15 +516,6 @@ extern "C" LLVMValueRef LLVMBuildAtomicCmpXchg(LLVMBuilderRef B,
|
|||
extern "C" LLVMValueRef LLVMBuildAtomicFence(LLVMBuilderRef B, AtomicOrdering order) {
|
||||
return wrap(unwrap(B)->CreateFence(order));
|
||||
}
|
||||
extern "C" LLVMValueRef LLVMBuildAtomicRMW(LLVMBuilderRef B,
|
||||
AtomicRMWInst::BinOp op,
|
||||
LLVMValueRef target,
|
||||
LLVMValueRef source,
|
||||
AtomicOrdering order) {
|
||||
return wrap(unwrap(B)->CreateAtomicRMW(op,
|
||||
unwrap(target), unwrap(source),
|
||||
order));
|
||||
}
|
||||
|
||||
extern "C" void LLVMSetDebug(int Enabled) {
|
||||
#ifndef NDEBUG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue