From: Evan Cheng Date: Sat, 8 Nov 2008 08:15:39 +0000 (+0000) Subject: Remove a InvalidateInstructionCache call with incorrect size. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fff484f1926cf26af3d6b5082ece88701164cfc3;p=oota-llvm.git Remove a InvalidateInstructionCache call with incorrect size. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58898 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index 7edeba29873..e706f89d8b0 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/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;