diff options
author | Chris Lattner <sabre@nondot.org> | 2008-06-25 17:18:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-06-25 17:18:44 +0000 |
commit | bc52cada0933f353d30da7b49af9a641bdb2c57d (patch) | |
tree | a5f90f85923b79c2cc7a3690f010221c7cbbd2c1 /lib/ExecutionEngine/JIT/JITEmitter.cpp | |
parent | 95f39009aaeb4614f3eeab3864ae1a31289f1a30 (diff) |
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
Diffstat (limited to 'lib/ExecutionEngine/JIT/JITEmitter.cpp')
-rw-r--r-- | lib/ExecutionEngine/JIT/JITEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index c55bc75560..f14d6f6ef4 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -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(), |