summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-25 17:18:44 +0000
committerChris Lattner <sabre@nondot.org>2008-06-25 17:18:44 +0000
commitd3406fc2a7b9778090d01433052b23fa5f2b4275 (patch)
treefa0abc1a5321202da1801d893249f27e96ff24c1 /llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
parentb4325a831627012e912d76046b616dcb95ca8840 (diff)
downloadbcm5719-llvm-d3406fc2a7b9778090d01433052b23fa5f2b4275.tar.gz
bcm5719-llvm-d3406fc2a7b9778090d01433052b23fa5f2b4275.zip
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. llvm-svn: 52734
Diffstat (limited to 'llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
index c55bc75560c..f14d6f6ef48 100644
--- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp
+++ b/llvm/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(),
OpenPOWER on IntegriCloud