Remove a InvalidateInstructionCache call with incorrect size.
authorEvan Cheng <evan.cheng@apple.com>
Sat, 8 Nov 2008 08:15:39 +0000 (08:15 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 8 Nov 2008 08:15:39 +0000 (08:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58898 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/JITEmitter.cpp

index 7edeba298737d3aae15565b996ff51bb6e0d3dfd..e706f89d8b078dc0782c3b45d169ac9ea294e545 100644 (file)
@@ -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;