From 686a725b45a6cd44fbc29cd6618e16af12519c46 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Sat, 8 Nov 2008 08:15:39 +0000 Subject: Remove a InvalidateInstructionCache call with incorrect size. llvm-svn: 58898 --- llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp') diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp index 7edeba29873..e706f89d8b0 100644 --- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -1133,10 +1133,6 @@ void JITEmitter::startGVStub(const GlobalValue* GV, unsigned StubSize, void *JITEmitter::finishGVStub(const GlobalValue* GV) { NumBytes += getCurrentPCOffset(); - - // Invalidate the icache if necessary. - sys::Memory::InvalidateInstructionCache(BufferBegin, NumBytes); - std::swap(SavedBufferBegin, BufferBegin); BufferEnd = SavedBufferEnd; CurBufferPtr = SavedCurBufferPtr; -- cgit v1.2.3