Эх сурвалжийг харах

Declare __clear_cache.

GCC declares __clear_cache in the gnu modes (-std=gnu++98,
-std=gnu++11), but not in the strict modes (-std=c++98, -std=c++11). This patch
declares it and therefore fixes the build when using one of the strict modes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181785 91177308-0d34-0410-b5e6-96231b3b80d8
Rafael Espindola 12 жил өмнө
parent
commit
15cf700b41

+ 1 - 0
lib/Support/Unix/Memory.inc

@@ -33,6 +33,7 @@
 #endif
 
 extern "C" void sys_icache_invalidate(const void *Addr, size_t len);
+extern "C" void __clear_cache(char *, char*);
 
 namespace {