X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FSystem%2FMemory.cpp;h=ef23b8d12aabdbe38d65fe878b0f8bf7acfdd44a;hb=87e0697a46ad214be0d8fce0955494f4085de95a;hp=e2d838dce026867fa2153e1d2eaaf8400cdb1da2;hpb=299f11f662c420d4da6ad11cf1a0863b26fcd20b;p=oota-llvm.git diff --git a/lib/System/Memory.cpp b/lib/System/Memory.cpp index e2d838dce02..ef23b8d12aa 100644 --- a/lib/System/Memory.cpp +++ b/lib/System/Memory.cpp @@ -13,6 +13,7 @@ //===----------------------------------------------------------------------===// #include "llvm/System/Memory.h" +#include "llvm/System/Valgrind.h" #include "llvm/Config/config.h" namespace llvm { @@ -68,4 +69,6 @@ void llvm::sys::Memory::InvalidateInstructionCache(const void *Addr, # endif #endif // end apple + + ValgrindDiscardTranslations(Addr, Len); }