Remove declaration of __clear_cache for __APPLE__. <rdar://problem/13924072>
authorBob Wilson <bob.wilson@apple.com>
Sun, 19 May 2013 20:33:51 +0000 (20:33 +0000)
committerBob Wilson <bob.wilson@apple.com>
Sun, 19 May 2013 20:33:51 +0000 (20:33 +0000)
commit2ed2ad00f9b54e015bc38ece1492eec50163dd9a
tree0d444c1ec57b4d48ed66cb1c10afdb6b7a25956b
parent51d46c36bc9e1611858c0d2a2675951c97fbfb2c
Remove declaration of __clear_cache for __APPLE__. <rdar://problem/13924072>

This fixes a bootstrapping problem with builds for Apple ARM targets.
Clang had the wrong prototype for __clear_cache with ARM targets.  Rafael
fixed that in clang svn r181784 and r181810, but without those changes,
we can't build this code for ARM because clang reports an error about the
declaration in Memory.inc not matching the builtin declaration. Some of our
buildbots need to use an older compiler that doesn't have the clang fix.
Since __clear_cache is never used here when __APPLE__ is defined, I'm just
conditionalizing the declaration to match that. I also moved the declaration
of sys_icache_invalidate inside the conditional for __APPLE__ while I was at
it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182223 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Unix/Memory.inc