[llvm] a5de04d - [Support][mips] Remove unnecessary includes from Memory.inc

Simon Atanasyan via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 12 21:50:18 PDT 2021


Author: Visa Hankala
Date: 2021-10-13T07:48:36+03:00
New Revision: a5de04d2617191661fbaaee741ec47f8c1f9478e

URL: https://github.com/llvm/llvm-project/commit/a5de04d2617191661fbaaee741ec47f8c1f9478e
DIFF: https://github.com/llvm/llvm-project/commit/a5de04d2617191661fbaaee741ec47f8c1f9478e.diff

LOG: [Support][mips] Remove unnecessary includes from Memory.inc

The mips-specific includes have been unnecessary ever since the
__clear_cache() builtin replaced cacheflush().

Differential Revision: https://reviews.llvm.org/D111486

Added: 
    

Modified: 
    llvm/lib/Support/Unix/Memory.inc

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/Unix/Memory.inc b/llvm/lib/Support/Unix/Memory.inc
index be88e7db14002..b83477e0e4cc6 100644
--- a/llvm/lib/Support/Unix/Memory.inc
+++ b/llvm/lib/Support/Unix/Memory.inc
@@ -29,14 +29,6 @@
 #include <zircon/syscalls.h>
 #endif
 
-#if defined(__mips__)
-#  if defined(__OpenBSD__)
-#    include <mips64/sysarch.h>
-#  elif !defined(__FreeBSD__)
-#    include <sys/cachectl.h>
-#  endif
-#endif
-
 #if defined(__APPLE__)
 extern "C" void sys_icache_invalidate(const void *Addr, size_t len);
 #else


        


More information about the llvm-commits mailing list