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:
Chris Lattner
2008-06-25 17:18:44 +00:00
parent 95f39009aa
commit bc52cada09
4 changed files with 5 additions and 37 deletions

View File

@@ -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(),