System/Path/Windows: Change GetRootDirectory to return file:/// instead of C:/.
[oota-llvm.git] / lib / System / Memory.cpp
index e2d838dce026867fa2153e1d2eaaf8400cdb1da2..ef23b8d12aabdbe38d65fe878b0f8bf7acfdd44a 100644 (file)
@@ -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);
 }