[llvm-commits] [PATCH] Use proper header for OpenBSD/mips64 to find cacheflush()

Duncan Sands baldrick at free.fr
Mon Sep 3 02:23:29 PDT 2012


Hi Brad,

On 29/08/12 17:57, Brad Smith wrote:
> On Tue, Aug 21, 2012 at 04:24:58PM -0400, Brad Smith wrote:
>> The following patch allows the code in lib/Support/Memory.cpp to find
>> cacheflush() on OpenBSD/mips64.

maybe all of this should be moved to lib/Support/Unix/Memory.inc?

Ciao, Duncan.

>
> ping.
>
>> Index: lib/Support/Memory.cpp
>> ===================================================================
>> --- lib/Support/Memory.cpp	(revision 161828)
>> +++ lib/Support/Memory.cpp	(working copy)
>> @@ -17,7 +17,11 @@
>>   #include "llvm/Config/config.h"
>>
>>   #if defined(__mips__)
>> -#include <sys/cachectl.h>
>> +#  if defined(__OpenBSD__)
>> +#    include <mips64/sysarch.h>
>> +#  else
>> +#    include <sys/cachectl.h>
>> +#  endif
>>   #endif
>>
>>   namespace llvm {
>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>




More information about the llvm-commits mailing list