mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
Switch the PPC backend and target-independent JIT to use the libsystem
InvalidateInstructionCache method instead of calling through a hook on the JIT. This is a host feature, not a target feature. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52734 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/MutexGuard.h"
|
||||
#include "llvm/System/Disassembler.h"
|
||||
#include "llvm/System/Memory.h"
|
||||
#include "llvm/Target/TargetInstrInfo.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include <algorithm>
|
||||
@@ -742,7 +743,7 @@ bool JITEmitter::finishFunction(MachineFunction &F) {
|
||||
}
|
||||
|
||||
// Invalidate the icache if necessary.
|
||||
TheJIT->getJITInfo().InvalidateInstructionCache(FnStart, FnEnd-FnStart);
|
||||
sys::Memory::InvalidateInstructionCache(FnStart, FnEnd-FnStart);
|
||||
|
||||
// Add it to the JIT symbol table if the host wants it.
|
||||
AddFunctionToSymbolTable(F.getFunction()->getNameStart(),
|
||||
|
Reference in New Issue
Block a user